#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"
{
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;
/* 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;
}
{
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;
/* 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
}