From 6ef101187774e30ddba6b46bbedef549a42196ad Mon Sep 17 00:00:00 2001 From: Andre Eisenbach Date: Tue, 18 Sep 2012 01:35:44 -0700 Subject: Initual Bluetooth open source release First release under Apache source license with updated header files and whitespace cleanups. Also fixed file permission to remove executable bit from source files. Change-Id: I7155903edfc2f491c1cbbd0db108f207852caaa0 --- bta/pan/bta_pan_api.c | 54 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 21 deletions(-) (limited to 'bta/pan/bta_pan_api.c') diff --git a/bta/pan/bta_pan_api.c b/bta/pan/bta_pan_api.c index 5a84668..6588230 100644 --- a/bta/pan/bta_pan_api.c +++ b/bta/pan/bta_pan_api.c @@ -1,15 +1,27 @@ -/***************************************************************************** -** -** Name: bta_pan_api.c -** -** Description: This is the implementation of the API for PAN -** subsystem of BTA, Widcomm's Bluetooth application -** layer for mobile phones. -** -** Copyright (c) 2004-2011, Broadcom Corp., All Rights Reserved. -** Broadcom Bluetooth Core. Proprietary and confidential. -** -*****************************************************************************/ +/****************************************************************************** + * + * Copyright (C) 2004-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 implementation of the API for PAN subsystem of BTA, + * Broadcom's Bluetooth application layer for mobile phones. + * + ******************************************************************************/ #include "bt_target.h" @@ -37,7 +49,7 @@ static const tBTA_SYS_REG bta_pan_reg = ** Description Enable PAN service. This function must be ** called before any other functions in the PAN API are called. ** When the enable operation is complete the callback function -** will be called with a BTA_PAN_ENABLE_EVT. +** will be called with a BTA_PAN_ENABLE_EVT. ** ** Returns void ** @@ -66,8 +78,8 @@ void BTA_PanEnable(tBTA_PAN_CBACK p_cback) ** ** Function BTA_PanDisable ** -** Description Disables PAN service. -** +** Description Disables PAN service. +** ** ** Returns void ** @@ -89,8 +101,8 @@ void BTA_PanDisable(void) ** Function BTA_PanSetRole ** ** Description Sets PAN roles. When the enable operation is complete -** the callback function will be called with a BTA_PAN_SET_ROLE_EVT. -** +** the callback function will be called with a BTA_PAN_SET_ROLE_EVT. +** ** Returns void ** *******************************************************************************/ @@ -156,8 +168,8 @@ void BTA_PanSetRole(tBTA_PAN_ROLE role, tBTA_PAN_ROLE_INFO *p_user_info, tBTA_PA ** ** Description Opens a connection to a peer device. ** When connection is open callback function is called -** with a BTA_PAN_OPEN_EVT. -** +** with a BTA_PAN_OPEN_EVT. +** ** ** Returns void ** @@ -182,8 +194,8 @@ BTA_API void BTA_PanOpen(BD_ADDR bd_addr, tBTA_PAN_ROLE local_role, tBTA_PAN_ ** ** Function BTA_PanClose ** -** Description Close a PAN connection to a peer device. -** +** Description Close a PAN connection to a peer device. +** ** ** Returns void ** -- cgit v1.1