[glib/gdbus-daemon] GDbusDaemon: Minor cleanup



commit 94c0ef5504befd66c6ab0b73967698f85a097b3c
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Apr 16 21:35:56 2012 +0200

    GDbusDaemon: Minor cleanup
    
    Use static functions for internal stuff
    Fix indentation

 gio/gdbusdaemon.c |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/gio/gdbusdaemon.c b/gio/gdbusdaemon.c
index b3b5a87..d578610 100644
--- a/gio/gdbusdaemon.c
+++ b/gio/gdbusdaemon.c
@@ -55,7 +55,7 @@ enum {
   PROP_ADDRESS
 };
 
-static void initable_iface_init       (GInitableIface      *initable_iface);
+static void initable_iface_init      (GInitableIface         *initable_iface);
 static void g_dbus_daemon_iface_init (_GFreedesktopDBusIface *iface);
 
 #define g_dbus_daemon_get_type _g_dbus_daemon_get_type
@@ -1058,9 +1058,10 @@ handle_list_queued_owners (_GFreedesktopDBus *object,
   return TRUE;
 }
 
-static gboolean handle_name_has_owner (_GFreedesktopDBus *object,
-				       GDBusMethodInvocation *invocation,
-				       const gchar *arg_name)
+static gboolean
+handle_name_has_owner (_GFreedesktopDBus *object,
+		       GDBusMethodInvocation *invocation,
+		       const gchar *arg_name)
 {
   GDBusDaemon *daemon = G_DBUS_DAEMON (object);
   Name *name;
@@ -1309,7 +1310,7 @@ return_error (Client *client, GDBusMessage *message,
   g_object_unref (reply);
 }
 
-GDBusMessage *
+static GDBusMessage *
 route_message (Client *source_client, GDBusMessage *message)
 {
   const char *dest;
@@ -1366,7 +1367,7 @@ route_message (Client *source_client, GDBusMessage *message)
   return message;
 }
 
-GDBusMessage *
+static GDBusMessage *
 copy_if_locked (GDBusMessage *message)
 {
   if (g_dbus_message_get_locked (message))
@@ -1378,7 +1379,7 @@ copy_if_locked (GDBusMessage *message)
   return message;
 }
 
-GDBusMessage *
+static GDBusMessage *
 filter_function (GDBusConnection *connection,
 		 GDBusMessage    *message,
 		 gboolean         incoming,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]