)
ADD_DEFINITIONS(-O2 -Wall -fPIC -flto -fdata-sections -ffunction-sections -fvisibility=hidden)
+ADD_DEFINITIONS(-fdiagnostics-color)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -Wl,--as-needed -Wl,--gc-sections -Wl,--print-gc-sections")
+SET(CMAKE_VERBOSE_MAKEFILE OFF)
# Build
pkg_check_modules(pkgs REQUIRED ${dependency})
* @{
*/
-#include <stdbool.h>
-#include <tizen_error.h>
+#include <tizen.h>
#ifdef __cplusplus
extern "C" {
* @{
*/
-#include <stdbool.h>
-#include <tizen_error.h>
+#include <tizen.h>
#ifdef __cplusplus
extern "C" {
ActivitySensor *sensor;
};
-EXTAPI int activity_is_supported(activity_type_e activity, bool* supported)
+EXPORT_API int activity_is_supported(activity_type_e activity, bool* supported)
{
if (supported)
*supported = false;
return ERR_NONE;
}
-EXTAPI int activity_create(activity_h *handle)
+EXPORT_API int activity_create(activity_h *handle)
{
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
ASSERT_NOT_NULL(handle);
return ERR_NONE;
}
-EXTAPI int activity_release(activity_h handle)
+EXPORT_API int activity_release(activity_h handle)
{
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
ASSERT_NOT_NULL(handle);
return ERR_NONE;
}
-EXTAPI int activity_start_recognition(activity_h handle, activity_type_e activity, activity_recognition_cb callback, void *user_data)
+EXPORT_API int activity_start_recognition(activity_h handle, activity_type_e activity, activity_recognition_cb callback, void *user_data)
{
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
ASSERT_NOT_NULL(handle);
return ERR_NONE;
}
-EXTAPI int activity_stop_recognition(activity_h handle)
+EXPORT_API int activity_stop_recognition(activity_h handle)
{
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
ASSERT_NOT_NULL(handle);
return ERR_NONE;
}
-EXTAPI int activity_get_accuracy(const activity_data_h data, activity_accuracy_e *accuracy)
+EXPORT_API int activity_get_accuracy(const activity_data_h data, activity_accuracy_e *accuracy)
{
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
ASSERT_NOT_NULL(data);
GestureSensor *sensor;
};
-EXTAPI int gesture_is_supported(gesture_type_e gesture, bool* supported)
+EXPORT_API int gesture_is_supported(gesture_type_e gesture, bool* supported)
{
if (supported)
*supported = false;
return ERR_NONE;
}
-EXTAPI int gesture_create(gesture_h *handle)
+EXPORT_API int gesture_create(gesture_h *handle)
{
ASSERT_SUPPORTED(FEATURE_GESTURE);
ASSERT_NOT_NULL(handle);
return ERR_NONE;
}
-EXTAPI int gesture_release(gesture_h handle)
+EXPORT_API int gesture_release(gesture_h handle)
{
ASSERT_SUPPORTED(FEATURE_GESTURE);
ASSERT_NOT_NULL(handle);
return ERR_NONE;
}
-EXTAPI int gesture_start_recognition(gesture_h handle, gesture_type_e gesture, gesture_option_e option, gesture_recognition_cb callback, void *user_data)
+EXPORT_API int gesture_start_recognition(gesture_h handle, gesture_type_e gesture, gesture_option_e option, gesture_recognition_cb callback, void *user_data)
{
ASSERT_SUPPORTED(FEATURE_GESTURE);
ASSERT_NOT_NULL(handle);
return ERR_NONE;
}
-EXTAPI int gesture_stop_recognition(gesture_h handle)
+EXPORT_API int gesture_stop_recognition(gesture_h handle)
{
ASSERT_SUPPORTED(FEATURE_GESTURE);
ASSERT_NOT_NULL(handle);
return ERR_NONE;
}
-EXTAPI int gesture_get_event(const gesture_data_h data, gesture_event_e *event)
+EXPORT_API int gesture_get_event(const gesture_data_h data, gesture_event_e *event)
{
ASSERT_SUPPORTED(FEATURE_GESTURE);
ASSERT_NOT_NULL(data);
return ERR_NONE;
}
-EXTAPI int gesture_get_tilt(const gesture_data_h data, int *x, int *y)
+EXPORT_API int gesture_get_tilt(const gesture_data_h data, int *x, int *y)
{
ASSERT_SUPPORTED(FEATURE_GESTURE);
ASSERT_NOT_NULL(data);
#ifndef _MOTION_TYPES_INTERNAL_H_
#define _MOTION_TYPES_INTERNAL_H_
-#include <tizen_error.h>
+#include <tizen.h>
#include <dlog.h>
-
-#define EXTAPI __attribute__ ((visibility("default")))
+#include <new>
#define UNDEFINED -1