#include "bt-internal-types.h"
#include "bt-request-sender.h"
-#ifdef TIZEN_GATT_CLIENT
#include "bluetooth-gatt-client-api.h"
#include <arpa/inet.h>
static GSList *gatt_characteristic_notify_list;
static GSList *gatt_characteristic_write_list = NULL;;
-#endif
#define GATT_DEFAULT_TIMEOUT (6 * 1000) // Dependent on supervision timeout 6 sec
{
BT_CHECK_PARAMETER(svc_pty, return);
-#ifdef TIZEN_GATT_CLIENT
- g_free(svc_pty->uuid);
-#else
g_free(svc_pty->uuid);
- g_free(svc_pty->handle);
- g_strfreev(svc_pty->include_handles.handle);
- g_strfreev(svc_pty->char_handle.handle);
-#endif
memset(svc_pty, 0, sizeof(bt_gatt_service_property_t));
g_free(char_pty->name);
g_free(char_pty->description);
g_free(char_pty->val);
-#ifndef TIZEN_GATT_CLIENT
- g_free(char_pty->handle);
- g_strfreev(char_pty->char_desc_handle.handle);
-#endif
memset(char_pty, 0, sizeof(bt_gatt_char_property_t));
g_free(desc_pty->uuid);
g_free(desc_pty->val);
-#ifndef TIZEN_GATT_CLIENT
- g_free(desc_pty->handle);
-#endif
memset(desc_pty, 0, sizeof(bt_gatt_char_descriptor_property_t));
return ret;
}
-#ifdef TIZEN_GATT_CLIENT
void __bt_uuid_hex_to_string(unsigned char *uuid, char *str)
{
uint32_t uuid0, uuid4;
BT_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
return result;
}
-
-#endif