summaryrefslogtreecommitdiffstats
path: root/bta/dm/bta_dm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'bta/dm/bta_dm_main.c')
-rw-r--r--bta/dm/bta_dm_main.c54
1 files changed, 33 insertions, 21 deletions
diff --git a/bta/dm/bta_dm_main.c b/bta/dm/bta_dm_main.c
index 38bf0af..a2fec04 100644
--- a/bta/dm/bta_dm_main.c
+++ b/bta/dm/bta_dm_main.c
@@ -1,14 +1,26 @@
-/*****************************************************************************
-**
-** Name: bta_dm_main.c
-**
-** Description: This is the main implementation file for the BTA
-** device manager.
-**
-** Copyright (c) 2003-2011, Broadcom Corp., All Rights Reserved.
-** Broadcom Bluetooth Core. Proprietary and confidential.
-**
-*****************************************************************************/
+/******************************************************************************
+ *
+ * Copyright (C) 2003-2012 Broadcom Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
+
+/******************************************************************************
+ *
+ * This is the main implementation file for the BTA device manager.
+ *
+ ******************************************************************************/
#include "bta_api.h"
#include "bta_sys.h"
@@ -37,7 +49,7 @@ const tBTA_DM_ACTION bta_dm_action[] =
/* device manager local device API events */
bta_dm_enable, /* 0 BTA_DM_API_ENABLE_EVT */
- bta_dm_disable, /* 1 BTA_DM_API_DISABLE_EVT */
+ bta_dm_disable, /* 1 BTA_DM_API_DISABLE_EVT */
bta_dm_set_dev_name, /* 2 BTA_DM_API_SET_NAME_EVT */
bta_dm_set_visibility, /* 3 BTA_DM_API_SET_VISIBILITY_EVT */
bta_dm_set_afhchannels, /* 4 BTA_DM_API_SET_AFH_CHANNELS_EVT */
@@ -103,7 +115,7 @@ const tBTA_DM_ACTION bta_dm_action[] =
enum
{
BTA_DM_API_SEARCH, /* 0 bta_dm_search_start */
- BTA_DM_API_SEARCH_CANCEL, /* 1 bta_dm_search_cancel */
+ BTA_DM_API_SEARCH_CANCEL, /* 1 bta_dm_search_cancel */
BTA_DM_API_DISCOVER, /* 2 bta_dm_discover */
BTA_DM_INQUIRY_CMPL, /* 3 bta_dm_inq_cmpl */
BTA_DM_REMT_NAME, /* 4 bta_dm_rmt_name */
@@ -129,7 +141,7 @@ const tBTA_DM_ACTION bta_dm_search_action[] =
{
bta_dm_search_start, /* 0 BTA_DM_API_SEARCH */
- bta_dm_search_cancel, /* 1 BTA_DM_API_SEARCH_CANCEL */
+ bta_dm_search_cancel, /* 1 BTA_DM_API_SEARCH_CANCEL */
bta_dm_discover, /* 2 BTA_DM_API_DISCOVER */
bta_dm_inq_cmpl, /* 3 BTA_DM_INQUIRY_CMPL */
bta_dm_rmt_name, /* 4 BTA_DM_REMT_NAME */
@@ -238,7 +250,7 @@ const tBTA_DM_ST_TBL bta_dm_search_st_tbl[] = {
** Function bta_dm_sm_disable
**
** Description unregister BTA DM
-**
+**
**
** Returns void
**
@@ -254,7 +266,7 @@ void bta_dm_sm_disable( )
** Function bta_dm_sm_execute
**
** Description State machine event handling function for DM
-**
+**
**
** Returns void
**
@@ -270,7 +282,7 @@ BOOLEAN bta_dm_sm_execute(BT_HDR *p_msg)
{
(*bta_dm_action[event])( (tBTA_DM_MSG*) p_msg);
}
-
+
return TRUE;
}
@@ -279,7 +291,7 @@ BOOLEAN bta_dm_sm_execute(BT_HDR *p_msg)
** Function bta_dm_sm_search_disable
**
** Description unregister BTA SEARCH DM
-**
+**
**
** Returns void
**
@@ -287,7 +299,7 @@ BOOLEAN bta_dm_sm_execute(BT_HDR *p_msg)
void bta_dm_search_sm_disable( )
{
bta_sys_deregister( BTA_ID_DM_SEARCH );
-
+
}
@@ -296,7 +308,7 @@ void bta_dm_search_sm_disable( )
** Function bta_dm_search_sm_execute
**
** Description State machine event handling function for DM
-**
+**
**
** Returns void
**
@@ -307,7 +319,7 @@ BOOLEAN bta_dm_search_sm_execute(BT_HDR *p_msg)
UINT8 action;
int i;
- APPL_TRACE_EVENT2("bta_dm_search_sm_execute state:%d, event:0x%x",
+ APPL_TRACE_EVENT2("bta_dm_search_sm_execute state:%d, event:0x%x",
bta_dm_search_cb.state, p_msg->event);
/* look up the state table for the current state */