handle->recog_cb = callback;
handle->recog_user_data = user_data;
- hand_gesture_data_h gesture_data = (hand_gesture_data_h)calloc(1, sizeof(struct hand_gesture_data_s));
- if (!gesture_data) {
- return HAND_GESTURE_ERROR_OUT_OF_MEMORY;
- }
+ // TODO: analysis the purpose of this data.
+ // hand_gesture_data_h gesture_data = (hand_gesture_data_h)calloc(1, sizeof(struct hand_gesture_data_s));
+ // if (!gesture_data) {
+ // return HAND_GESTURE_ERROR_OUT_OF_MEMORY;
+ // }
- ret = gesture_client_dbus_start_recognition(handle->gdbus_connection, gesture_type, gesture_data, callback);
+ ret = gesture_client_dbus_start_recognition(handle->gdbus_connection, gesture_type, NULL, callback);
if (ret != HAND_GESTURE_ERROR_NONE) {
LOGE("Failed to start recoginition : %d", ret);
return HAND_GESTURE_ERROR_OPERATION_FAILED;