[telepathy-gabble/master] Updated function definition style.

Jonny Lamb jonny.lamb at collabora.co.uk
Wed Jun 3 03:51:18 PDT 2009


Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
 src/debug.c    |    8 ++++----
 src/debugger.c |   21 ++++++++++++++-------
 src/gabble.c   |   20 ++++++++++----------
 3 files changed, 28 insertions(+), 21 deletions(-)

diff --git a/src/debug.c b/src/debug.c
index 319a44a..9d90477 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -85,8 +85,8 @@ debug_flag_to_key (GabbleDebugFlags flag)
 
 static void
 log_to_debugger (GabbleDebugFlags flag,
-		 const gchar *format,
-		 va_list args)
+    const gchar *format,
+    va_list args)
 {
   GabbleDebugger *dbg = gabble_debugger_get_singleton ();
   gchar *domain, *message = NULL;
@@ -104,8 +104,8 @@ log_to_debugger (GabbleDebugFlags flag,
 }
 
 void gabble_debug (GabbleDebugFlags flag,
-                   const gchar *format,
-                   ...)
+    const gchar *format,
+    ...)
 {
   va_list args;
 
diff --git a/src/debugger.c b/src/debugger.c
index 6d0956d..bdc9825 100644
--- a/src/debugger.c
+++ b/src/debugger.c
@@ -96,8 +96,10 @@ debug_message_free (GabbleDebugMessage *msg)
 }
 
 static void
-gabble_debugger_get_property (GObject *object, guint property_id,
-                              GValue *value, GParamSpec *pspec)
+gabble_debugger_get_property (GObject *object,
+    guint property_id,
+    GValue *value,
+    GParamSpec *pspec)
 {
   GabbleDebugger *self = GABBLE_DEBUGGER (object);
 
@@ -113,8 +115,10 @@ gabble_debugger_get_property (GObject *object, guint property_id,
 }
 
 static void
-gabble_debugger_set_property (GObject *object, guint property_id,
-                              const GValue *value, GParamSpec *pspec)
+gabble_debugger_set_property (GObject *object,
+    guint property_id,
+    const GValue *value,
+    GParamSpec *pspec)
 {
   GabbleDebugger *self = GABBLE_DEBUGGER (object);
 
@@ -174,7 +178,8 @@ gabble_debugger_class_init (GabbleDebuggerClass *klass)
 }
 
 static void
-get_messages (GabbleSvcDebug *self, DBusGMethodInvocation *context)
+get_messages (GabbleSvcDebug *self,
+    DBusGMethodInvocation *context)
 {
   GabbleDebugger *dbg = GABBLE_DEBUGGER (self);
   GPtrArray *messages;
@@ -185,7 +190,8 @@ get_messages (GabbleSvcDebug *self, DBusGMethodInvocation *context)
   if (G_UNLIKELY (struct_type == 0))
     {
       struct_type = dbus_g_type_get_struct (
-          "GValueArray", G_TYPE_DOUBLE, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_INVALID);
+          "GValueArray", G_TYPE_DOUBLE, G_TYPE_STRING, G_TYPE_UINT,
+          G_TYPE_STRING, G_TYPE_INVALID);
     }
 
   messages = g_ptr_array_sized_new (g_queue_get_length (dbg->messages));
@@ -216,7 +222,8 @@ get_messages (GabbleSvcDebug *self, DBusGMethodInvocation *context)
 }
 
 static void
-debug_iface_init (gpointer g_iface, gpointer iface_data)
+debug_iface_init (gpointer g_iface,
+    gpointer iface_data)
 {
   GabbleSvcDebugClass *klass = (GabbleSvcDebugClass *) g_iface;
 
diff --git a/src/gabble.c b/src/gabble.c
index ac35153..7e97b4b 100644
--- a/src/gabble.c
+++ b/src/gabble.c
@@ -40,9 +40,9 @@ construct_cm (void)
 #ifdef ENABLE_DEBUG
 static void
 log_to_debugger (GTimeVal *timestamp,
-		 const gchar *log_domain,
-		 GLogLevelFlags log_level,
-		 const gchar *string)
+    const gchar *log_domain,
+    GLogLevelFlags log_level,
+    const gchar *string)
 {
   GabbleDebugger *dbg = gabble_debugger_get_singleton ();
 
@@ -51,9 +51,9 @@ log_to_debugger (GTimeVal *timestamp,
 
 static void
 simple_log (const gchar *log_domain,
-            GLogLevelFlags log_level,
-            const gchar *message,
-            gpointer user_data)
+    GLogLevelFlags log_level,
+    const gchar *message,
+    gpointer user_data)
 {
   g_log_default_handler (log_domain, log_level, message, NULL);
 
@@ -67,9 +67,9 @@ simple_log (const gchar *log_domain,
 
 static void
 stamp_log (const gchar *log_domain,
-           GLogLevelFlags log_level,
-           const gchar *message,
-           gpointer user_data)
+    GLogLevelFlags log_level,
+    const gchar *message,
+    gpointer user_data)
 {
   GTimeVal now;
   gchar now_str[32];
@@ -90,7 +90,7 @@ stamp_log (const gchar *log_domain,
 
 int
 gabble_main (int argc,
-             char **argv)
+    char **argv)
 {
   tp_debug_divert_messages (g_getenv ("GABBLE_LOGFILE"));
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list