summaryrefslogtreecommitdiffstats
path: root/stack/avdt/avdt_scb.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack/avdt/avdt_scb.c')
-rw-r--r--stack/avdt/avdt_scb.c57
1 files changed, 35 insertions, 22 deletions
diff --git a/stack/avdt/avdt_scb.c b/stack/avdt/avdt_scb.c
index 346d1ad..b44af06 100644
--- a/stack/avdt/avdt_scb.c
+++ b/stack/avdt/avdt_scb.c
@@ -1,14 +1,27 @@
-/*****************************************************************************
-**
-** Name: avdt_scb.c
-**
-** Description: This module contains the stream control block and
-** functions which operate on the stream control block.
-**
-** Copyright (c) 2002-2008, Broadcom Corp., All Rights Reserved.
-** WIDCOMM Bluetooth Core. Proprietary and confidential.
-**
-*****************************************************************************/
+/******************************************************************************
+ *
+ * Copyright (C) 2002-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 module contains the stream control block and functions which
+ * operate on the stream control block.
+ *
+ ******************************************************************************/
#include <string.h>
#include "data_types.h"
@@ -86,7 +99,7 @@ const char * const avdt_scb_evt_str[] = {
"CC_CLOSE_EVT"
};
-#endif
+#endif
/* action function list */
@@ -503,7 +516,7 @@ const tAVDT_SCB_ST_TBL avdt_scb_st_tbl[] = {
** Function avdt_scb_event
**
** Description State machine event handling function for scb
-**
+**
**
** Returns Nothing.
**
@@ -552,7 +565,7 @@ void avdt_scb_event(tAVDT_SCB *p_scb, UINT8 event, tAVDT_SCB_EVT *p_data)
** Function avdt_scb_init
**
** Description Initialize stream control block module.
-**
+**
**
** Returns Nothing.
**
@@ -569,7 +582,7 @@ void avdt_scb_init(void)
** Function avdt_scb_alloc
**
** Description Allocate a stream control block.
-**
+**
**
** Returns pointer to the scb, or NULL if none could be allocated.
**
@@ -608,7 +621,7 @@ tAVDT_SCB *avdt_scb_alloc(tAVDT_CS *p_cs)
break;
}
}
-
+
if (i == AVDT_NUM_SEPS)
{
/* out of ccbs */
@@ -624,7 +637,7 @@ tAVDT_SCB *avdt_scb_alloc(tAVDT_CS *p_cs)
** Function avdt_scb_dealloc
**
** Description Deallocate a stream control block.
-**
+**
**
** Returns void.
**
@@ -652,7 +665,7 @@ void avdt_scb_dealloc(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data)
** Function avdt_scb_to_hdl
**
** Description Given a pointer to an scb, return its handle (or seid).
-**
+**
**
** Returns Index of scb.
**
@@ -667,7 +680,7 @@ UINT8 avdt_scb_to_hdl(tAVDT_SCB *p_scb)
** Function avdt_scb_by_hdl
**
** Description Given an scb handle (or seid), return a pointer to the scb.
-**
+**
**
** Returns Pointer to scb or NULL if index is out of range or scb
** is not allocated.
@@ -681,7 +694,7 @@ tAVDT_SCB *avdt_scb_by_hdl(UINT8 hdl)
if ((hdl > 0) && (hdl <= AVDT_NUM_SEPS))
{
p_scb = &avdt_cb.scb[hdl - 1];
-
+
/* verify scb is allocated */
if (!p_scb->allocated)
{
@@ -702,7 +715,7 @@ tAVDT_SCB *avdt_scb_by_hdl(UINT8 hdl)
** Function avdt_scb_verify
**
** Description Verify the condition of a list of scbs.
-**
+**
**
** Returns SEID that failed, or 0 if success.
**
@@ -766,7 +779,7 @@ UINT8 avdt_scb_verify(tAVDT_CCB *p_ccb, UINT8 state, UINT8 *p_seid, UINT16 num_s
**
** Description Given a list of SCB handles, return a list of peer SEIDs
** for the handles, copied in place into the struct passed in.
-**
+**
**
** Returns Nothing.
**