Fix build error caused by not including new 76/125276/1 accepted/tizen/4.0/unified/20170816.011232 accepted/tizen/4.0/unified/20170828.223659 accepted/tizen/unified/20170414.164115 submit/tizen/20170414.093412 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100002 tizen_4.0.m1_release
authorMu-Woong Lee <muwoong.lee@samsung.com>
Fri, 14 Apr 2017 09:47:08 +0000 (18:47 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Fri, 14 Apr 2017 09:47:08 +0000 (18:47 +0900)
Change-Id: I08bea84ff53066b7d1bd017eddfbf2f604ff7677
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
CMakeLists.txt
include/activity_recognition.h
include/gesture_recognition.h
src/Activity.cpp
src/Gesture.cpp
src/TypesInternal.h

index 560fe642194489a1936713e62827672513ae901a..304884bb707670747f0219e3163fff8fc61e2130 100644 (file)
@@ -17,7 +17,9 @@ INCLUDE_DIRECTORIES(
 )
 
 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})
index a6bfc33fe60aed0af5fe45e87fe7aabe7cff8a72..8d3f5cd02cad366c6dc7f1b82fa40248ee57e1b6 100644 (file)
@@ -25,8 +25,7 @@
  * @{
  */
 
-#include <stdbool.h>
-#include <tizen_error.h>
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index ae3bc028efc5e8c0646b47afb8134f8dff972d68..024adfe4e0c7fe4bbeb5447c5b2b415242c70ff2 100644 (file)
@@ -25,8 +25,7 @@
  * @{
  */
 
-#include <stdbool.h>
-#include <tizen_error.h>
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
index a7cf6675e8c828ca1dab7329d03344734262307c..bf30e97348b8b0b3db8c9e4b96cbdc96da2e9dc3 100644 (file)
@@ -30,7 +30,7 @@ struct _activity_handle_s {
        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;
@@ -43,7 +43,7 @@ EXTAPI int activity_is_supported(activity_type_e activity, bool* supported)
        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);
@@ -62,7 +62,7 @@ EXTAPI int activity_create(activity_h *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);
@@ -73,7 +73,7 @@ EXTAPI int activity_release(activity_h 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);
@@ -94,7 +94,7 @@ EXTAPI int activity_start_recognition(activity_h handle, activity_type_e activit
        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);
@@ -104,7 +104,7 @@ EXTAPI int activity_stop_recognition(activity_h 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);
index bdb43063f47ee8d8a9f9bf0a45938f93231ca21e..2d91c70bda1768ba67ff1410f7ba7fa95b7259ab 100644 (file)
@@ -30,7 +30,7 @@ struct _gesture_handle_s {
        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;
@@ -43,7 +43,7 @@ EXTAPI int gesture_is_supported(gesture_type_e gesture, bool* supported)
        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);
@@ -62,7 +62,7 @@ EXTAPI int gesture_create(gesture_h *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);
@@ -73,7 +73,7 @@ EXTAPI int gesture_release(gesture_h 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);
@@ -102,7 +102,7 @@ EXTAPI int gesture_start_recognition(gesture_h handle, gesture_type_e gesture, g
        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);
@@ -112,7 +112,7 @@ EXTAPI int gesture_stop_recognition(gesture_h 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);
@@ -126,7 +126,7 @@ EXTAPI int gesture_get_event(const gesture_data_h data, gesture_event_e *event)
        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);
index bde7980cf1be4da1f6621b53f45abb91da63e8df..7f5dac1e489aa6c8aece324b41683d11b8918f97 100644 (file)
 #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