summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSeungha Son <seungha.son@samsung.com>2017-09-12 14:03:37 +0900
committerSeungha Son <seungha.son@samsung.com>2017-09-12 14:04:38 +0900
commit732c535670d54465a99aa5b864d0eddd99c5c2d5 (patch)
treeb3b5dcc0dafb8eb2d3b0cc8eff0aa6003ba2e80f /src
parentfc55bf987c3ab4dd4a402600961a832de755c7a8 (diff)
downloadlibrua-732c535670d54465a99aa5b864d0eddd99c5c2d5.tar.gz
librua-732c535670d54465a99aa5b864d0eddd99c5c2d5.tar.bz2
librua-732c535670d54465a99aa5b864d0eddd99c5c2d5.zip
Adjust coding rule
- open brace '{' following struct go on the same line - "foo* bar" should be "foo *bar" - braces {} are not necessary for single statement blocks Signed-off-by: Seungha Son <seungha.son@samsung.com> Change-Id: I87e190ba140bfc8186ea3c816f390dfc9e31877e
Diffstat (limited to 'src')
-rw-r--r--src/rua_dbus.c8
-rw-r--r--src/rua_dbus.h3
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