*/
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
* @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
#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
#define DBUS_MAXIMUM_NAME_LENGTH 255
struct pending_call_data {
- dbus_pending_cb func;
+ device_dbus_pending_cb func;
void *data;
};
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;
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,
* 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);
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;
#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,
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,