Modify names of service path and interface 69/150869/1
authorchanywa <cbible.kim@samsung.com>
Tue, 19 Sep 2017 03:05:02 +0000 (12:05 +0900)
committerchanywa <cbible.kim@samsung.com>
Tue, 19 Sep 2017 03:05:02 +0000 (12:05 +0900)
Change-Id: I735423c5f3fddcf9ddb4ef2fc9e5bcb59ae9c55d
Signed-off-by: chanywa <cbible.kim@samsung.com>
src/tizen-service-enabler-lib.c

index 0656497f2b458188bb62d72e1fd94766d2896948..229103242406fcfbfd15c72b42db3679e11f51bf 100755 (executable)
@@ -17,7 +17,8 @@
 #include <gio/gio.h>
 
 #define SERVICE_ENABLER_NAME "org.example.tizen-service-enabler"
-#define SERVICE_ENABLER_PATH "/org/example/tizen-service-enabler"
+#define SERVICE_ENABLER_PATH "/org/example/TizenServiceEnabler"
+#define SERVICE_ENABLER_INTERFACE "org.example.TizenServiceEnabler"
 
 
 #endif
@@ -81,13 +82,13 @@ hello(hello_cb user_cb, void* user_data)
                                    NULL,
                                    SERVICE_ENABLER_NAME,
                                    SERVICE_ENABLER_PATH,
-                                   SERVICE_ENABLER_NAME,
+                                   SERVICE_ENABLER_INTERFACE,
                                    proxy_cancel,
                                    &gerror);
 
        if (!bproxy) {
                DEBUG_LOG("g_dbus_proxy_new_for_bus_sync error [%s]",
-                                 gerror->message);
+                                 (gerror ? gerror->message : "null"));
                ret = -1;
                goto EXIT;
        }
@@ -103,7 +104,7 @@ hello(hello_cb user_cb, void* user_data)
 
        if (!result) {
                DEBUG_LOG("g_dbus_proxy_call_sync 'Hello' error [%s]",
-                                 gerror->message);
+                                 (gerror ? gerror->message : "null"));
                ret = -1;
                goto EXIT;
        }