Typedef change: dbus_pending_cb -> device_dbus_pending_cb 41/241941/1
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 19 Aug 2020 06:52:55 +0000 (15:52 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 21 Aug 2020 04:08:25 +0000 (13:08 +0900)
Change-Id: I1308144009a355d9c4580391ed6c1ac126255bce
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
include/display-internal.h
include/touchscreen-internal.h
src/dbus.c
src/dbus.h
src/display.c
src/touchscreen-internal.c

index fb1920b..a50b87b 100644 (file)
@@ -97,7 +97,7 @@ int device_display_get_max_brightness_state(int display_index, display_state_e s
  */
 int device_display_set_brightness_state(int display_index, display_state_e state, int brightness);
 
-typedef void (*dbus_pending_cb)(void *data, GVariant *result, GError *err);
+typedef void (*device_dbus_pending_cb)(void *data, GVariant *result, GError *err);
 
 /**
  * @brief Change display state by a specific reason
@@ -118,7 +118,7 @@ typedef void (*dbus_pending_cb)(void *data, GVariant *result, GError *err);
  * @retval #DEVICE_ERROR_OPERATION_FAILED Operation failed
  * @see device_display_change_state_by_reason()
  */
-int device_display_change_state_by_reason(display_state_e type, const char *reason, int timeout, dbus_pending_cb cb);
+int device_display_change_state_by_reason(display_state_e type, const char *reason, int timeout, device_dbus_pending_cb cb);
 #ifdef __cplusplus
 }
 #endif
index 6de6690..657118e 100644 (file)
@@ -2,10 +2,9 @@
 #define __TIZEN_SYSTEM_TOUCHSCREEN_INTERNAL_H__
 
 #include <gio/gio.h>
+typedef void (*device_dbus_pending_cb)(void *data, GVariant *result, GError *err);
 
-typedef void (*dbus_pending_cb)(void *data, GVariant *result, GError *err);
-
-int device_touchscreen_enable(dbus_pending_cb cb);
-int device_touchscreen_disable(dbus_pending_cb cb);
+int device_touchscreen_enable(device_dbus_pending_cb cb);
+int device_touchscreen_disable(device_dbus_pending_cb cb);
 
 #endif
index 1a28ffb..9562547 100644 (file)
@@ -31,7 +31,7 @@
 #define DBUS_MAXIMUM_NAME_LENGTH 255
 
 struct pending_call_data {
-       dbus_pending_cb func;
+       device_dbus_pending_cb func;
        void *data;
 };
 
@@ -405,7 +405,7 @@ static void cb_pending(GDBusProxy *proxy,
 int dbus_method_async_with_reply_var(const char *dest, const char *path,
                const char *interface, const char *method,
                GVariant *param,
-               dbus_pending_cb cb, int timeout, void *data)
+               device_dbus_pending_cb cb, int timeout, void *data)
 {
        GDBusProxy *proxy;
        GError *err = NULL;
@@ -457,7 +457,7 @@ int dbus_method_async_with_reply_var(const char *dest, const char *path,
 int dbus_method_async_with_reply(const char *dest, const char *path,
                const char *interface, const char *method,
                const char *sig, const char *param[],
-               dbus_pending_cb cb, int timeout, void *data)
+               device_dbus_pending_cb cb, int timeout, void *data)
 {
        return dbus_method_async_with_reply_var(dest,
                                path,
index 1bf4cdf..11cde7f 100644 (file)
@@ -92,15 +92,15 @@ int dbus_method_sync_with_reply(const char *dest,
  * If result is NULL, err is set.
  * Do not invoke g_variant_unref() with result.
  */
-typedef void (*dbus_pending_cb)(void *data, GVariant *result, GError *err);
+typedef void (*device_dbus_pending_cb)(void *data, GVariant *result, GError *err);
 
 int dbus_method_async_with_reply_var(const char *dest, const char *path,
                const char *interface, const char *method,
                GVariant *param,
-               dbus_pending_cb cb, int timeout, void *data);
+               device_dbus_pending_cb cb, int timeout, void *data);
 int dbus_method_async_with_reply(const char *dest, const char *path,
                const char *interface, const char *method,
-               const char *sig, const char *param[], dbus_pending_cb cb, int timeout, void *data);
+               const char *sig, const char *param[], device_dbus_pending_cb cb, int timeout, void *data);
 
 void restart_callback(void);
 
index a5e1267..cc63847 100644 (file)
@@ -412,7 +412,7 @@ int device_display_set_brightness_state(int display_index, display_state_e state
        return DEVICE_ERROR_NONE;
 }
 
-int device_display_change_state_by_reason(display_state_e type, const char *reason, int timeout, dbus_pending_cb cb)
+int device_display_change_state_by_reason(display_state_e type, const char *reason, int timeout, device_dbus_pending_cb cb)
 {
        int ret;
 
index e7bdf35..f653420 100644 (file)
@@ -22,7 +22,7 @@
 #define METHOD_TOUCHSCREEN_DISABLE "Disable"
 
 //LCOV_EXCL_START Not used function
-int device_touchscreen_enable(dbus_pending_cb cb)
+int device_touchscreen_enable(device_dbus_pending_cb cb)
 {
        int ret;
        ret = dbus_method_async_with_reply(DEVICED_BUS_NAME,
@@ -32,7 +32,7 @@ int device_touchscreen_enable(dbus_pending_cb cb)
        return errno_to_device_error(ret);
 }
 
-int device_touchscreen_disable(dbus_pending_cb cb)
+int device_touchscreen_disable(device_dbus_pending_cb cb)
 {
        int ret;
        ret = dbus_method_async_with_reply(DEVICED_BUS_NAME,