#include "bluetooth-gatt-server-api.h"
#endif
-#ifdef TIZEN_GATT_CLIENT
#include "bluetooth-gatt-client-api.h"
-#endif
+#include "bluetooth-mesh-api.h"
#include "bt-common.h"
#include "bt-request-sender.h"
#include "bt-event-handler.h"
-
-#ifdef TIZEN_FEATURE_BT_DPM
#include "bt-dpm.h"
-#endif
static bt_user_info_t user_info[BT_MAX_USER_INFO];
static GDBusConnection *system_shared_conn = NULL;
int ret = BLUETOOTH_ERROR_NONE;
BT_INFO("+");
+ BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();
BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
int ret = BLUETOOTH_ERROR_NONE;
BT_INFO("+");
+ BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();
BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
user_data);
}
-#ifdef TIZEN_GATT_CLIENT
void _bt_gatt_client_event_cb(int event, int result, void *param,
void *callback, void *user_data)
{
BT_ERR("GATT Client event callback is not registered!!!");
}
}
-#endif
#ifndef GATT_DIRECT
void _bt_gatt_server_event_cb(int event, int result, void *param,
}
#endif
+void _bt_mesh_event_cb(int event, int result, void *param,
+ void *callback, void *user_data)
+{
+ BT_DBG("_bt_mesh_event_cb");
+ mesh_event_param_t bt_event = { 0, 0, NULL, NULL };
+ bt_event.event = event;
+ bt_event.result = result;
+ bt_event.param_data = param;
+ if (callback) {
+ BT_DBG("Mesh event callback is registered");
+ ((mesh_cb_func_ptr)callback)(bt_event.event, &bt_event,
+ user_data);
+ } else {
+ BT_ERR("Mesh event callback is not registered!!!");
+ }
+}
+
void _bt_divide_device_class(bluetooth_device_class_t *device_class,
unsigned int cod)
{