diff options
Diffstat (limited to 'bta/gatt/bta_gatts_api.c')
-rw-r--r-- | bta/gatt/bta_gatts_api.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bta/gatt/bta_gatts_api.c b/bta/gatt/bta_gatts_api.c index 65df0a6b9..d30878e61 100644 --- a/bta/gatt/bta_gatts_api.c +++ b/bta/gatt/bta_gatts_api.c @@ -33,6 +33,13 @@ #include "bta_gatts_int.h" /***************************************************************************** +** Externs +*****************************************************************************/ +#if BTA_DYNAMIC_MEMORY == FALSE +extern tBTA_GATTS_CB bta_gatts_cb; +#endif + +/***************************************************************************** ** Constants *****************************************************************************/ @@ -44,6 +51,22 @@ static const tBTA_SYS_REG bta_gatts_reg = /******************************************************************************* ** +** Function BTA_GATTS_Init +** +** Description This function is called to initalize GATTS module +** +** Parameters None +** +** Returns None +** +*******************************************************************************/ +void BTA_GATTS_Init() +{ + memset(&bta_gatts_cb, 0, sizeof(tBTA_GATTS_CB)); +} + +/******************************************************************************* +** ** Function BTA_GATTS_AppRegister ** ** Description This function is called to register application callbacks |