1 /****************************************************************************** 2 * 3 * Copyright (C) 2014 The Android Open Source Project 4 * Copyright 2002 - 2004 Open Interface North America, Inc. All rights reserved. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at: 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 ******************************************************************************/ 19 #ifndef _OI_MODULES_H 20 #define _OI_MODULES_H 21 /** 22 * @file 23 * 24 * Enumeration type defining the inidivual stack components. 25 * 26 */ 27 28 /********************************************************************************** 29 $Revision: #1 $ 30 ***********************************************************************************/ 31 32 33 /** \addtogroup Misc Miscellaneous APIs */ 34 /**@{*/ 35 36 #ifdef __cplusplus 37 extern "C" { 38 #endif 39 40 41 /** 42 * This enumeration lists constants for referencing the components of 43 * the BLUEmagic 3.0 protocol stack, profiles, and other functionalities. 44 * 45 * In order to distinguish types of modules, items are grouped with markers to 46 * delineate start and end of the groups 47 * 48 * The module type is used for various purposes: 49 * identification in debug print statements 50 * access to initialization flags 51 * access to the configuration table 52 */ 53 54 typedef enum { 55 /* profiles and protocols --> Updates to oi_debug.c and oi_config_table.c */ 56 57 /* XX --> Keep Enum values up-to-date! */ 58 OI_MODULE_AT, /**< 00 AT command processing */ 59 OI_MODULE_A2DP, /**< 01 Advanced Audio Distribution Profile */ 60 OI_MODULE_AVCTP, /**< 02 Audio-Visual Control Transport Profile */ 61 OI_MODULE_AVDTP, /**< 03 Audio-Visual Distribution Protocol */ 62 OI_MODULE_AVRCP, /**< 04 Audio-Visual Remote Control Profile */ 63 OI_MODULE_BIP_CLI, /**< 05 Basic Imaging Profile protocol client */ 64 OI_MODULE_BIP_SRV, /**< 06 Basic Imaging Profile protocol server */ 65 OI_MODULE_BNEP, /**< 07 Bluetooth Network Encapsulation Protocol */ 66 OI_MODULE_BPP_SENDER, /**< 08 Basic Printing Profile */ 67 OI_MODULE_BPP_PRINTER, /**< 09 Basic Printing Profile */ 68 OI_MODULE_CTP, /**< 10 Cordless Telephony Profile */ 69 OI_MODULE_DUN, /**< 11 Dial-Up Networking Profile */ 70 OI_MODULE_FAX, /**< 12 Fax Profile */ 71 OI_MODULE_FTP_CLI, /**< 13 File Transfer Profile protocol client */ 72 OI_MODULE_FTP_SRV, /**< 14 File Transfer Profile protocol server */ 73 OI_MODULE_HANDSFREE, /**< 15 Hands-Free Profile */ 74 OI_MODULE_HANDSFREE_AG, /**< 16 Hands-Free Profile */ 75 OI_MODULE_HCRP_CLI, /**< 17 Hardcopy Cable Replacement Profile */ 76 OI_MODULE_HCRP_SRV, /**< 18 Hardcopy Cable Replacement Profile */ 77 OI_MODULE_HEADSET, /**< 19 Headset Profile */ 78 OI_MODULE_HEADSET_AG, /**< 20 Headset Profile */ 79 OI_MODULE_HID, /**< 21 Human Interface Device profile */ 80 OI_MODULE_INTERCOM, /**< 22 Intercom Profile */ 81 OI_MODULE_OBEX_CLI, /**< 23 OBEX protocol client, Generic Object Exchange Profile */ 82 OI_MODULE_OBEX_SRV, /**< 24 OBEX protocol server, Generic Object Exchange Profile */ 83 OI_MODULE_OPP_CLI, /**< 25 Object Push Profile protocol client */ 84 OI_MODULE_OPP_SRV, /**< 26 Object Push Profile protocol server */ 85 OI_MODULE_PAN, /**< 27 PAN profile */ 86 OI_MODULE_PBAP_CLI, /**< 28 Phonebook Access Profile client */ 87 OI_MODULE_PBAP_SRV, /**< 29 Phonebook Access Profile server */ 88 OI_MODULE_SAP_CLI, /**< 30 SIM Access Profile */ 89 OI_MODULE_SAP_SRV, /**< 31 SIM Access Profile */ 90 OI_MODULE_SPP, /**< 32 Serial Port Profile */ 91 OI_MODULE_SYNC_CLI, /**< 33 Synchronization Profile */ 92 OI_MODULE_SYNC_SRV, /**< 34 Synchronization Profile */ 93 OI_MODULE_SYNC_CMD_CLI, /**< 35 Synchronization Profile */ 94 OI_MODULE_SYNC_CMD_SRV, /**< 36 Synchronization Profile */ 95 OI_MODULE_SYNCML, /**< 37 SyncML Profile */ 96 OI_MODULE_TCS, /**< 38 TCS Binary */ 97 OI_MODULE_VDP, /**< 39 Video Distribution Profile */ 98 99 /* corestack components --> Updates to oi_debug.c and oi_config_table.c */ 100 101 OI_MODULE_COMMON_CONFIG, /**< 40 Common configuration, module has no meaning other than for config struct */ 102 OI_MODULE_CMDCHAIN, /**< 41 Command chaining utility */ 103 OI_MODULE_DISPATCH, /**< 42 Dispatcher */ 104 OI_MODULE_DATAELEM, /**< 43 Data Elements, marshaller */ 105 OI_MODULE_DEVMGR, /**< 44 Device Manager */ 106 OI_MODULE_DEVMGR_MODES, /**< 45 Device Manager connectability/discoverability modes */ 107 OI_MODULE_HCI, /**< 46 Host Controller Interface command layer */ 108 OI_MODULE_L2CAP, /**< 47 L2CAP */ 109 OI_MODULE_MEMMGR, /**< 48 modules that do memory management */ 110 OI_MODULE_POLICYMGR, /**< 49 Policy Manager */ 111 OI_MODULE_RFCOMM, /**< 50 RFCOMM */ 112 OI_MODULE_RFCOMM_SD, /**< 51 RFCOMM Service discovery */ 113 OI_MODULE_SDP_CLI, /**< 52 Service Discovery Protocol client */ 114 OI_MODULE_SDP_SRV, /**< 53 Service Discovery Protocol server */ 115 OI_MODULE_SDPDB, /**< 54 Service Discovery Protocol database */ 116 OI_MODULE_SECMGR, /**< 55 Security Manager */ 117 OI_MODULE_SNIFFLOG, /**< 56 sniff log */ 118 OI_MODULE_SUPPORT, /**< 57 support functions, including CThru Dispatcher, time functions, and stack initialization */ 119 OI_MODULE_TRANSPORT, /**< 58 transport layer between HCI command layer and driver */ 120 OI_MODULE_TEST, /**< 59 used to debug output from internal test programs */ 121 OI_MODULE_XML, /**< 60 XML/CSS parser */ 122 123 OI_MODULE_DI, /**< 61 Device Identification Profile */ 124 125 // bhapi components --> Updates to oi_debug.c 126 127 OI_MODULE_BHAPI, /**< 62 BLUEmagic Host API generic */ 128 OI_MODULE_BHCLI, /**< 63 BLUEmagic Host API client side */ 129 OI_MODULE_BHSRV, /**< 64 BLUEmagic Host API server side */ 130 OI_MODULE_MSGQ, /**< 65 module that handles message queuing */ 131 OI_MODULE_BHAPI_TRANSPORT, /**< 66 module that handles message queuing */ 132 OI_MODULE_BLST_SRV, /**< 67 module that provides server side BHAPI Lightweight Serial Transport */ 133 OI_MODULE_BLST_CLI, /**< 68 module that provides client side BHAPI Lightweight Serial Transport */ 134 135 // OEM files --> Updates to oi_debug.c 136 OI_MODULE_OEM, /**< 69 Application Memory allocation */ 137 138 // Application glue --> Updates to oi_debug.c 139 OI_MODULE_APP, /**< 70 Application Memory allocation */ 140 141 /* various pieces of code depend on these last 2 elements occuring in a specific order: 142 OI_MODULE_ALL must be the 2nd to last element 143 OI_MODULE_UNKNOWN must be the last element 144 */ 145 OI_MODULE_ALL, /**< 71 special value identifying all modules - used for control of debug print statements */ 146 OI_MODULE_UNKNOWN /**< 72 special value - used for debug print statements */ 147 } OI_MODULE; 148 149 /** 150 * This constant is the number of actual modules in the list. ALL and UNKNOWN are 151 * special values that are not actually modules. 152 * Used for debug print and memmgr profiling 153 */ 154 #define OI_NUM_MODULES OI_MODULE_ALL 155 156 157 /** 158 * This constant is the number of profile and core components. It is used to size 159 * the initialization and configuration tables. 160 */ 161 #define OI_NUM_STACK_MODULES OI_MODULE_BHAPI 162 163 164 #ifdef __cplusplus 165 } 166 #endif 167 168 /**@}*/ 169 170 #endif /* _OI_MODULES_H */ 171 172