capi: disable feature check routine temporally.
authorsaerome.kim <saerome.kim@samsung.com>
Wed, 28 Mar 2018 10:17:10 +0000 (19:17 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 2 Jul 2018 10:38:49 +0000 (19:38 +0900)
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
capi/CMakeLists.txt
capi/demo/main.c
capi/src/companion_private.h
src/companion-manager/src/comp_group.c
src/companion-manager/src/comp_mot_agent.c

index b5e0f05..683a370 100644 (file)
@@ -14,7 +14,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/src)
 
 SET(SOURCES src/companion.c
             src/companion_gdbus.c
-                       src/companion_util.c
+            src/companion_util.c
             src/companion_dbus.c)
 
 ADD_LIBRARY(${CAPI_FN} SHARED ${SOURCES})
index 79677b0..41e5372 100644 (file)
@@ -44,6 +44,17 @@ const char* comp_error_to_string(comp_error_e err)
        switch (err) {
        /* CHECK: List all enum values here */
        CASE_TO_STR(COMP_ERROR_NONE)
+       CASE_TO_STR(COMP_ERROR_IO_ERROR)
+       CASE_TO_STR(COMP_ERROR_INVALID_PARAMETER)
+       CASE_TO_STR(COMP_ERROR_OUT_OF_MEMORY)
+       CASE_TO_STR(COMP_ERROR_PERMISSION_DENIED)
+       CASE_TO_STR(COMP_ERROR_NOT_SUPPORTED)
+       CASE_TO_STR(COMP_ERROR_COMM_ERROR)
+       CASE_TO_STR(COMP_ERROR_RX)
+       CASE_TO_STR(COMP_ERROR_TX)
+       CASE_TO_STR(COMP_ERROR_OPERATION_FAILED)
+       CASE_TO_STR(COMP_ERROR_ALREADY_IN_PROGRESS)
+       CASE_TO_STR(COMP_ERROR_ALREADY_INITIALIZED)
        default :
                return "COMP_ERROR_GENERAL";
        }
index c0f8256..44c8a8c 100644 (file)
@@ -34,7 +34,7 @@
                return COMP_ERROR_INVALID_PARAMETER; \
        }
 
-#if 1
+#if 0
 #define CHECK_FEATURE_SUPPORTED(feature_name) { \
        bool comp_supported = FALSE; \
        if (!system_info_get_platform_bool(feature_name, &comp_supported)) { \
index 745e3c4..accf31a 100644 (file)
@@ -370,7 +370,7 @@ int comp_group_get_mot_device_count()
 void comp_group_notify_mot_enable_device_done()
 {
        GVariant *device_data;
-       int count = g_list_length(mot_enb_dev_list);
+       int count = comp_group_get_mot_device_count();
 
        LOG_BEGIN();
 
index 4ace0d7..a43bda4 100644 (file)
@@ -80,7 +80,7 @@ int agent_get_ownerid(char* deviceid)
 
 static gboolean _find_device_timeout_cb(gpointer data)
 {
-       int ret = -1;
+       int ret = COMP_ERROR_UNKNOWN;
 
        if (found_device_count > 0)
                ret = 0;