summaryrefslogtreecommitdiffstats
path: root/bta/gatt/bta_gatts_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'bta/gatt/bta_gatts_int.h')
-rw-r--r--bta/gatt/bta_gatts_int.h51
1 files changed, 32 insertions, 19 deletions
diff --git a/bta/gatt/bta_gatts_int.h b/bta/gatt/bta_gatts_int.h
index 77945f0..4810c05 100644
--- a/bta/gatt/bta_gatts_int.h
+++ b/bta/gatt/bta_gatts_int.h
@@ -1,13 +1,26 @@
-/*****************************************************************************
-**
-** Name: bta_gatts_int.h
-**
-** Description: This is the private file for the BTA GATT server.
-**
-** Copyright (c) 2003-2010, Broadcom Corp., All Rights Reserved.
-** Widcomm 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 private file for the BTA GATT server.
+ *
+ ******************************************************************************/
#ifndef BTA_GATTS_INT_H
#define BTA_GATTS_INT_H
@@ -27,7 +40,7 @@ enum
BTA_GATTS_API_REG_EVT = BTA_SYS_EVT_START(BTA_ID_GATTS),
BTA_GATTS_INT_START_IF_EVT,
BTA_GATTS_API_DEREG_EVT,
- BTA_GATTS_API_CREATE_SRVC_EVT,
+ BTA_GATTS_API_CREATE_SRVC_EVT,
BTA_GATTS_API_INDICATION_EVT,
BTA_GATTS_API_ADD_INCL_SRVC_EVT,
@@ -68,7 +81,7 @@ typedef tBTA_GATTS_INT_START_IF tBTA_GATTS_API_DEREG;
typedef struct
{
- BT_HDR hdr;
+ BT_HDR hdr;
tBTA_GATTS_IF server_if;
tBT_UUID service_uuid;
UINT16 num_handle;
@@ -79,7 +92,7 @@ typedef struct
typedef struct
{
- BT_HDR hdr;
+ BT_HDR hdr;
tBT_UUID char_uuid;
tBTA_GATT_PERM perm;
tBTA_GATT_CHAR_PROP property;
@@ -88,16 +101,16 @@ typedef struct
typedef struct
{
- BT_HDR hdr;
+ BT_HDR hdr;
UINT16 included_service_id;
}tBTA_GATTS_API_ADD_INCL_SRVC;
typedef struct
{
- BT_HDR hdr;
+ BT_HDR hdr;
tBT_UUID descr_uuid;
- tBTA_GATT_PERM perm;
+ tBTA_GATT_PERM perm;
}tBTA_GATTS_API_ADD_DESCR;
typedef struct
@@ -166,15 +179,15 @@ typedef struct
typedef struct
{
tBT_UUID service_uuid; /* service UUID */
- UINT16 service_id; /* service handle */
+ UINT16 service_id; /* service handle */
UINT8 inst_num; /* instance ID */
- UINT8 rcb_idx;
+ UINT8 rcb_idx;
UINT8 idx; /* self index of serviec CB */
BOOLEAN in_use;
}tBTA_GATTS_SRVC_CB;
-
+
/* GATT server control block */
typedef struct
{