-#ifndef __TIZEN_OPEN__
- int ret;
- bool supported = false;
-
- ret = gesture_is_supported(GESTURE_SHAKE, &supported);
- if (ret != GESTURE_ERROR_NONE) {
- BT_ERR("gesture_is_supported failed : %d", ret);
- } else {
- if (!supported) {
- BT_ERR("gesture is not supported");
- } else {
- ret = gesture_create(&handle);
- if (ret != GESTURE_ERROR_NONE) {
- BT_ERR("gesture_create failed : %d", ret);
- } else {
- ugd->handle = handle;
- ret = gesture_start_recognition(handle, GESTURE_SHAKE,
- GESTURE_OPTION_DEFAULT, __bt_motion_shake_cb, ugd);
- if (ret != GESTURE_ERROR_NONE) {
- BT_ERR("gesture_start_recognition failed : %d", ret);
- gesture_release(handle);
- ugd->handle = NULL;
- }
- }
- }
- }
-#endif