Fix parameter indentation
authorJens Georg <jensg@openismus.com>
Tue, 28 May 2013 09:29:44 +0000 (11:29 +0200)
committerJens Georg <jensg@openismus.com>
Tue, 28 May 2013 09:29:44 +0000 (11:29 +0200)
libgssdp/gssdp-client.c
libgssdp/gssdp-resource-browser.c
libgssdp/gssdp-resource-group.c
libgssdp/gssdp-socket-source.c
tests/test-browser.c
tools/gssdp-device-sniffer.c

index dfe904d..048d5e6 100644 (file)
@@ -163,7 +163,7 @@ gssdp_client_init (GSSDPClient *client)
 }
 
 static void
-gssdp_client_initable_iface_init (gpointer g_iface,
+gssdp_client_initable_iface_init (gpointer               g_iface,
                                   G_GNUC_UNUSED gpointer iface_data)
 {
         GInitableIface *iface = (GInitableIface *)g_iface;
@@ -171,9 +171,9 @@ gssdp_client_initable_iface_init (gpointer g_iface,
 }
 
 static gboolean
-gssdp_client_initable_init (GInitable     *initable,
-                            G_GNUC_UNUSED GCancellable *cancellable,
-                            GError       **error)
+gssdp_client_initable_init (GInitable                   *initable,
+                            G_GNUC_UNUSED GCancellable  *cancellable,
+                            GError                     **error)
 {
         GSSDPClient *client = GSSDP_CLIENT (initable);
         GError *internal_error = NULL;
@@ -1054,7 +1054,7 @@ out:
 static gboolean
 request_socket_source_cb (G_GNUC_UNUSED GIOChannel  *source,
                           G_GNUC_UNUSED GIOCondition condition,
-                          gpointer     user_data)
+                          gpointer                   user_data)
 {
         GSSDPClient *client;
 
@@ -1066,7 +1066,7 @@ request_socket_source_cb (G_GNUC_UNUSED GIOChannel  *source,
 static gboolean
 multicast_socket_source_cb (G_GNUC_UNUSED GIOChannel  *source,
                             G_GNUC_UNUSED GIOCondition condition,
-                            gpointer     user_data)
+                            gpointer                   user_data)
 {
         GSSDPClient *client;
 
@@ -1078,7 +1078,7 @@ multicast_socket_source_cb (G_GNUC_UNUSED GIOChannel  *source,
 static gboolean
 search_socket_source_cb (G_GNUC_UNUSED GIOChannel  *source,
                          G_GNUC_UNUSED GIOCondition condition,
-                         gpointer     user_data)
+                         gpointer                   user_data)
 {
         GSSDPClient *client;
 
index b4957fb..6a41e77 100644 (file)
@@ -968,12 +968,12 @@ received_announcement (GSSDPResourceBrowser *resource_browser,
  * Received a message
  */
 static void
-message_received_cb (G_GNUC_UNUSED GSSDPClient        *client,
-                     G_GNUC_UNUSED const char         *from_ip,
-                     G_GNUC_UNUSED gushort             from_port,
-                     _GSSDPMessageType   type,
-                     SoupMessageHeaders *headers,
-                     gpointer            user_data)
+message_received_cb (G_GNUC_UNUSED GSSDPClient *client,
+                     G_GNUC_UNUSED const char  *from_ip,
+                     G_GNUC_UNUSED gushort      from_port,
+                     _GSSDPMessageType          type,
+                     SoupMessageHeaders        *headers,
+                     gpointer                   user_data)
 {
         GSSDPResourceBrowser *resource_browser;
 
@@ -1013,7 +1013,7 @@ resource_free (gpointer data)
 
 static gboolean
 clear_cache_helper (G_GNUC_UNUSED gpointer key,
-                    gpointer value,
+                    gpointer               value,
                     G_GNUC_UNUSED gpointer data)
 {
         Resource *resource;
index af83212..08f2f7e 100644 (file)
@@ -738,12 +738,12 @@ resource_group_timeout (gpointer user_data)
  * Received a message
  */
 static void
-message_received_cb (G_GNUC_UNUSED GSSDPClient        *client,
-                     const char         *from_ip,
-                     gushort             from_port,
-                     _GSSDPMessageType   type,
-                     SoupMessageHeaders *headers,
-                     gpointer            user_data)
+message_received_cb (G_GNUC_UNUSED GSSDPClient *client,
+                     const char                *from_ip,
+                     gushort                    from_port,
+                     _GSSDPMessageType          type,
+                     SoupMessageHeaders        *headers,
+                     gpointer                   user_data)
 {
         GSSDPResourceGroup *resource_group;
         const char *target, *mx_str, *version_str, *man;
index 8c1e81c..a59fab1 100644 (file)
@@ -73,7 +73,7 @@ gssdp_socket_source_do_init (GInitable     *initable,
                              GError       **error);
 
 static void
-gssdp_socket_source_initable_init (gpointer g_iface,
+gssdp_socket_source_initable_init (gpointer               g_iface,
                                    G_GNUC_UNUSED gpointer iface_data)
 {
         GInitableIface *iface = (GInitableIface *)g_iface;
@@ -81,10 +81,10 @@ gssdp_socket_source_initable_init (gpointer g_iface,
 }
 
 static void
-gssdp_socket_source_get_property (GObject    *object,
-                                  guint       property_id,
-                                  G_GNUC_UNUSED GValue     *value,
-                                  GParamSpec *pspec)
+gssdp_socket_source_get_property (GObject              *object,
+                                  guint                 property_id,
+                                  G_GNUC_UNUSED GValue *value,
+                                  GParamSpec           *pspec)
 {
         /* All properties are construct-only, write-only */
         switch (property_id) {
@@ -144,9 +144,9 @@ gssdp_socket_source_new (GSSDPSocketSourceType type,
 }
 
 static gboolean
-gssdp_socket_source_do_init (GInitable     *initable,
+gssdp_socket_source_do_init (GInitable                   *initable,
                              G_GNUC_UNUSED GCancellable  *cancellable,
-                             GError       **error)
+                             GError                     **error)
 {
         GSSDPSocketSource *self = NULL;
         GInetAddress *iface_address = NULL;
index 125d95f..91feaca 100644 (file)
@@ -25,8 +25,8 @@
 
 static void
 resource_available_cb (G_GNUC_UNUSED GSSDPResourceBrowser *resource_browser,
-                       const char           *usn,
-                       GList                *locations)
+                       const char                         *usn,
+                       GList                              *locations)
 {
         GList *l;
 
@@ -40,7 +40,7 @@ resource_available_cb (G_GNUC_UNUSED GSSDPResourceBrowser *resource_browser,
 
 static void
 resource_unavailable_cb (G_GNUC_UNUSED GSSDPResourceBrowser *resource_browser,
-                         const char           *usn)
+                         const char                         *usn)
 {
         g_print ("resource unavailable\n"
                  "  USN:      %s\n",
index 80035c5..ecc9328 100644 (file)
@@ -233,12 +233,12 @@ append_packet (const gchar *from_ip,
 }
 
 static void
-on_ssdp_message (GSSDPClient *client G_GNUC_UNUSED,
-                 const gchar *from_ip,
-                 gushort from_port G_GNUC_UNUSED,
-                 _GSSDPMessageType type,
-                 SoupMessageHeaders *headers,
-                 gpointer user_data G_GNUC_UNUSED)
+on_ssdp_message (G_GNUC_UNUSED GSSDPClient *client,
+                 G_GNUC_UNUSED const gchar *from_ip,
+                 G_GNUX_UNUSED gushort      from_port,
+                 _GSSDPMessageType          type,
+                 SoupMessageHeaders        *headers,
+                 G_GNUC_UNUSED gpointer     user_data)
 {
         time_t arrival_time;