diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rua_dbus.c | 8 | ||||
-rw-r--r-- | src/rua_dbus.h | 3 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/rua_dbus.c b/src/rua_dbus.c index 1957e48..0becc29 100644 --- a/src/rua_dbus.c +++ b/src/rua_dbus.c @@ -29,8 +29,7 @@ #define RUA_PATH "/org/tizen/rua" #define RUA_SIGNAL_DATA_UPDATE "dataupdate" -struct cb_data -{ +struct cb_data { int callback_id; rua_history_update_cb callback; void *user_data; @@ -40,7 +39,7 @@ static GDBusConnection *conn; static guint s_id; static gint atomic_callback_id; -static GHashTable* callback_hash_table; +static GHashTable *callback_hash_table; static void __foreach_callback(gpointer key, gpointer value, gpointer user_data); @@ -179,9 +178,8 @@ static void __foreach_callback(gpointer key, gpointer value, if (r == -1) return; - if (cd->callback) { + if (cd->callback) cd->callback(table, nrows, ncols, cd->user_data); - } } static void __signal_handler(GDBusConnection *connection, diff --git a/src/rua_dbus.h b/src/rua_dbus.h index 76789a9..43f5a17 100644 --- a/src/rua_dbus.h +++ b/src/rua_dbus.h @@ -17,8 +17,7 @@ #ifndef __RUA_DBUS_H__ #define __RUA_DBUS_H__ -typedef enum -{ +typedef enum { ADD, DELETE, UPDATE |