Change dbus function name
[platform/core/api/device.git] / src / callback.c
index b3cf676..91d9d25 100644 (file)
@@ -21,7 +21,7 @@
 #include <errno.h>
 #include <vconf.h>
 #include <gio/gio.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
 #include <libsyscommon/list.h>
 
 #include "callback.h"
@@ -291,7 +291,7 @@ int device_add_callback(device_callback_e type, device_changed_cb cb, void *data
 {
        struct device_cb_info *cb_info;
        GList *elem, *elem_next;
-       int ret, n;
+       int ret_request, n;
 
        if (!is_feature_display_supported() && type == DEVICE_CALLBACK_DISPLAY_STATE)
                return DEVICE_ERROR_NOT_SUPPORTED;
@@ -305,8 +305,8 @@ int device_add_callback(device_callback_e type, device_changed_cb cb, void *data
        /* check if it is the first request */
        n = SYS_G_LIST_LENGTH(device_cb_list[type]);
        if (n == 0) {
-               ret = register_request(type);
-               if (ret < 0)
+               ret_request = register_request(type);
+               if (ret_request < 0)
                        return DEVICE_ERROR_OPERATION_FAILED;
        }
 
@@ -333,7 +333,7 @@ int device_remove_callback(device_callback_e type, device_changed_cb cb)
 {
        struct device_cb_info *cb_info;
        GList *elem, *elem_next;
-       int ret, n;
+       int ret_request, n;
 
        if (!is_feature_display_supported() && type == DEVICE_CALLBACK_DISPLAY_STATE)
                return DEVICE_ERROR_NOT_SUPPORTED;
@@ -360,8 +360,8 @@ int device_remove_callback(device_callback_e type, device_changed_cb cb)
        /* check if this callback is last element */
        n = SYS_G_LIST_LENGTH(device_cb_list[type]);
        if (n == 0) {
-               ret = release_request(type);
-               if (ret < 0)
+               ret_request = release_request(type);
+               if (ret_request < 0)
                        return DEVICE_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE System Error
        }