diff options
Diffstat (limited to 'bta/include/bta_pan_co.h')
-rw-r--r-- | bta/include/bta_pan_co.h | 62 |
1 files changed, 37 insertions, 25 deletions
diff --git a/bta/include/bta_pan_co.h b/bta/include/bta_pan_co.h index c8769f4..5b20fad 100644 --- a/bta/include/bta_pan_co.h +++ b/bta/include/bta_pan_co.h @@ -1,14 +1,26 @@ -/***************************************************************************** -** -** Name: bta_pan_co.h -** -** Description: This is the interface file for data gateway call-out -** functions. -** -** Copyright (c) 2004, Widcomm Inc., All Rights Reserved. -** Widcomm 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 interface file for data gateway call-out functions. + * + ******************************************************************************/ #ifndef BTA_PAN_CO_H #define BTA_PAN_CO_H @@ -47,7 +59,7 @@ ** used by the phone to initialize data paths or for other ** initialization purposes. The function must return the ** data flow mask as described below. -** +** ** ** Returns Data flow mask. ** @@ -58,10 +70,10 @@ BTA_API extern UINT8 bta_pan_co_init(UINT8 *q_level); ** ** Function bta_pan_co_open ** -** Description This function is executed by PAN when a connection +** Description This function is executed by PAN when a connection ** is opened. The phone can use this function to set ** up data paths or perform any required initialization. -** +** ** ** Returns void ** @@ -74,7 +86,7 @@ BTA_API extern void bta_pan_co_open(UINT16 handle, UINT8 app_id, tBTA_PAN_ROLE l ** ** Description This function is called by PAN when a connection to a ** server is closed. -** +** ** ** Returns void ** @@ -88,8 +100,8 @@ BTA_API extern void bta_pan_co_close(UINT16 handle, UINT8 app_id); ** Description This function is called by PAN to transfer data on the ** TX path; that is, data being sent from BTA to the phone. ** This function is used when the TX data path is configured -** to use the pull interface. -** +** to use the pull interface. +** ** ** Returns void ** @@ -103,8 +115,8 @@ BTA_API extern void bta_pan_co_tx_path(UINT16 handle, UINT8 app_id); ** Description This function is called by PAN to transfer data on the ** RX path; that is, data being sent from the phone to BTA. ** This function is used when the RX data path is configured -** to use the pull interface. -** +** to use the pull interface. +** ** ** Returns void ** @@ -119,12 +131,12 @@ BTA_API extern void bta_pan_co_rx_path(UINT16 handle, UINT8 app_id); ** when the TX path is configured to use a push interface. ** The implementation of this function must copy the data to ** the phone's memory. -** +** ** ** Returns void ** *******************************************************************************/ -BTA_API extern void bta_pan_co_tx_write(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, UINT16 protocol, UINT8 *p_data, +BTA_API extern void bta_pan_co_tx_write(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, UINT16 protocol, UINT8 *p_data, UINT16 len, BOOLEAN ext, BOOLEAN forward); /******************************************************************************* @@ -135,7 +147,7 @@ BTA_API extern void bta_pan_co_tx_write(UINT16 handle, UINT8 app_id, BD_ADDR src ** when the TX path is configured to use a push interface with ** zero copy. The phone must free the buffer using function ** GKI_freebuf() when it is through processing the buffer. -** +** ** ** Returns void ** @@ -152,8 +164,8 @@ BTA_API extern void bta_pan_co_tx_writebuf(UINT16 handle, UINT8 app_id, BD_ADDR ** data flow on the RX path when it is configured to use ** a push interface. If data flow is disabled the phone must ** not call bta_pan_ci_rx_write() or bta_pan_ci_rx_writebuf() -** until data flow is enabled again. -** +** until data flow is enabled again. +** ** ** Returns void ** @@ -184,6 +196,6 @@ BTA_API extern void bta_pan_co_pfilt_ind(UINT16 handle, BOOLEAN indication, tBTA *******************************************************************************/ BTA_API extern void bta_pan_co_mfilt_ind(UINT16 handle, BOOLEAN indication, tBTA_PAN_STATUS result, UINT16 len, UINT8 *p_filters); - + #endif /* BTA_PAN_CO_H */ |