summaryrefslogtreecommitdiffstats
path: root/stack/avct/avct_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack/avct/avct_api.c')
-rw-r--r--stack/avct/avct_api.c58
1 files changed, 35 insertions, 23 deletions
diff --git a/stack/avct/avct_api.c b/stack/avct/avct_api.c
index d1d5cee..7e37a90 100644
--- a/stack/avct/avct_api.c
+++ b/stack/avct/avct_api.c
@@ -1,14 +1,26 @@
-/*****************************************************************************
-**
-** Name: avct_api.c
-**
-** Description: This module contains API of the audio/video control
-** transport protocol.
-**
-** Copyright (c) 2003-2008, 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 module contains API of the audio/video control transport protocol.
+ *
+ ******************************************************************************/
#include <string.h>
#include "data_types.h"
@@ -34,7 +46,7 @@ tAVCT_CB avct_cb;
** prepares the protocol stack for its use. This function
** must be called once by the system or platform using AVCTP
** before the other functions of the API an be used.
-**
+**
**
** Returns void
**
@@ -45,7 +57,7 @@ void AVCT_Register(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask)
/* register PSM with L2CAP */
L2CA_Register(AVCT_PSM, (tL2CAP_APPL_INFO *) &avct_l2c_appl);
-
+
/* set security level */
BTM_SetSecurityLevel(TRUE, "", BTM_SEC_SERVICE_AVCTP, sec_mask, AVCT_PSM, 0, 0);
BTM_SetSecurityLevel(FALSE, "", BTM_SEC_SERVICE_AVCTP, sec_mask, AVCT_PSM, 0, 0);
@@ -86,7 +98,7 @@ void AVCT_Register(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask)
** application in the system. Before this function can be
** called, all connections must be removed with
** AVCT_RemoveConn().
-**
+**
**
** Returns void
**
@@ -108,9 +120,9 @@ void AVCT_Deregister(void)
** the p_cc->role parameter. When this function is called to
** create an initiator connection, an AVCTP connection to
** the peer device is initiated if one does not already exist.
-** If an acceptor connection is created, the connection waits
+** If an acceptor connection is created, the connection waits
** passively for an incoming AVCTP connection from a peer device.
-**
+**
**
** Returns AVCT_SUCCESS if successful, otherwise error.
**
@@ -173,7 +185,7 @@ UINT16 AVCT_CreateConn(UINT8 *p_handle, tAVCT_CC *p_cc, BD_ADDR peer_addr)
** the application is no longer using a connection. If this
** is the last connection to a peer the L2CAP channel for AVCTP
** will be closed.
-**
+**
**
** Returns AVCT_SUCCESS if successful, otherwise error.
**
@@ -212,9 +224,9 @@ UINT16 AVCT_RemoveConn(UINT8 handle)
** the role parameter. When this function is called to
** create an initiator connection, the Browse channel to
** the peer device is initiated if one does not already exist.
-** If an acceptor connection is created, the connection waits
+** If an acceptor connection is created, the connection waits
** passively for an incoming AVCTP connection from a peer device.
-**
+**
**
** Returns AVCT_SUCCESS if successful, otherwise error.
**
@@ -289,7 +301,7 @@ UINT16 AVCT_CreateBrowse (UINT8 handle, UINT8 role)
** the application is no longer using a connection. If this
** is the last connection to a peer the L2CAP channel for AVCTP
** will be closed.
-**
+**
**
** Returns AVCT_SUCCESS if successful, otherwise error.
**
@@ -322,7 +334,7 @@ UINT16 AVCT_RemoveBrowse (UINT8 handle)
**
** Function AVCT_GetBrowseMtu
**
-** Description Get the peer_mtu for the AVCTP Browse channel of the given
+** Description Get the peer_mtu for the AVCTP Browse channel of the given
** connection.
**
** Returns the peer browsing channel MTU.
@@ -346,7 +358,7 @@ UINT16 AVCT_GetBrowseMtu (UINT8 handle)
**
** Function AVCT_GetPeerMtu
**
-** Description Get the peer_mtu for the AVCTP channel of the given
+** Description Get the peer_mtu for the AVCTP channel of the given
** connection.
**
** Returns the peer MTU size.
@@ -423,7 +435,7 @@ UINT16 AVCT_MsgReq(UINT8 handle, UINT8 label, UINT8 cr, BT_HDR *p_msg)
ul_msg.p_buf = p_msg;
ul_msg.p_ccb = p_ccb;
ul_msg.label = label;
- ul_msg.cr = cr;
+ ul_msg.cr = cr;
#if (AVCT_BROWSE_INCLUDED == TRUE)
/* send msg event to bcb */