Typedef change: dbus_pending_cb -> device_dbus_pending_cb 23/241323/1
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 19 Aug 2020 06:52:55 +0000 (15:52 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 19 Aug 2020 06:52:55 +0000 (15:52 +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 d85de68..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(device_dbus_pending_cb cb);
+int device_touchscreen_disable(device_dbus_pending_cb cb);
 
-int device_touchscreen_enable(dbus_pending_cb cb);
-int device_touchscreen_disable(dbus_pending_cb cb);
-
-#endif __TIZEN_SYSTEM_TOUCHSCREEN_INTERNAL_H__
+#endif
index 14891bf..6290e79 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;
@@ -456,7 +456,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 c721d3b..8d1ed9b 100644 (file)
@@ -88,15 +88,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 6be39bb..850e159 100644 (file)
@@ -410,7 +410,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 081b4ad..6220273 100644 (file)
@@ -5,7 +5,7 @@
 #define METHOD_TOUCHSCREEN_ENABLE  "Enable"
 #define METHOD_TOUCHSCREEN_DISABLE "Disable"
 
-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,
@@ -15,7 +15,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,