RSeries astromech firmware
btm_api.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 1999-2012 Broadcom Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  ******************************************************************************/
18 
19 /******************************************************************************
20  *
21  * This file contains the Bluetooth Manager (BTM) API function external
22  * definitions.
23  *
24  ******************************************************************************/
25 #ifndef BTM_API_H
26 #define BTM_API_H
27 
28 
31 
32 /* Security service definitions (BTM_SetSecurityLevel)
33 ** Used for Authorization APIs
34 */
35 
36 /* Update these as services are added */
37 #define BTM_SEC_SERVICE_FIRST_EMPTY 51
38 
39 #ifndef BTM_SEC_MAX_SERVICES
40 #define BTM_SEC_MAX_SERVICES 65
41 #endif
42 
43 
44 /*******************************************************************************
45 **
46 ** Function BTM_SetSecurityLevel
47 **
48 ** Description Register service security level with Security Manager. Each
49 ** service must register its requirements regardless of the
50 ** security level that is used. This API is called once for originators
51 ** nad again for acceptors of connections.
52 **
53 ** Returns TRUE if registered OK, else FALSE
54 **
55 *******************************************************************************/
56 //extern
57 BOOLEAN BTM_SetSecurityLevel (BOOLEAN is_originator, const char *p_name,
58  UINT8 service_id, UINT16 sec_level,
59  UINT16 psm, UINT32 mx_proto_id,
60  UINT32 mx_chan_id);
61 
62 #endif /* BTM_API_H */
bt_target.h
BTM_SetSecurityLevel
BOOLEAN BTM_SetSecurityLevel(BOOLEAN is_originator, const char *p_name, UINT8 service_id, UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id, UINT32 mx_chan_id)
UINT8
uint8_t UINT8
Definition: bt_types.h:25
BOOLEAN
bool BOOLEAN
Definition: bt_types.h:33
UINT32
uint32_t UINT32
Definition: bt_types.h:27
bt_types.h
UINT16
uint16_t UINT16
Definition: bt_types.h:26