[Telepathy-commits] [telepathy-haze/master] Make things static when they ought to be

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Jan 8 06:28:53 PST 2009


---
 src/connection-aliasing.c  |   10 +++++-----
 src/connection-avatars.c   |   16 ++++++++--------
 src/connection.c           |    6 +++---
 src/contact-list-channel.c |    2 +-
 src/contact-list.c         |    4 ++--
 src/im-channel.c           |    2 +-
 6 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/connection-aliasing.c b/src/connection-aliasing.c
index 079730e..dacaf03 100644
--- a/src/connection-aliasing.c
+++ b/src/connection-aliasing.c
@@ -40,7 +40,7 @@ can_alias (HazeConnection *conn)
     return (prpl->alias_buddy != NULL);
 }
 
-void
+static void
 haze_connection_get_alias_flags (TpSvcConnectionInterfaceAliasing *self,
                                  DBusGMethodInvocation *context)
 {
@@ -60,7 +60,7 @@ haze_connection_get_alias_flags (TpSvcConnectionInterfaceAliasing *self,
             context, flags);
 }
 
-void
+static void
 haze_connection_request_aliases (TpSvcConnectionInterfaceAliasing *self,
                                  const GArray *contacts,
                                  DBusGMethodInvocation *context)
@@ -139,7 +139,7 @@ struct _g_hash_table_foreach_all_in_my_brain
     GError **error;
 };
 
-void
+static void
 set_aliases_foreach (gpointer key,
                      gpointer value,
                      gpointer user_data)
@@ -196,7 +196,7 @@ set_aliases_foreach (gpointer key,
     return;
 }
 
-void
+static void
 haze_connection_set_aliases (TpSvcConnectionInterfaceAliasing *self,
                              GHashTable *aliases,
                              DBusGMethodInvocation *context)
@@ -246,7 +246,7 @@ haze_connection_aliasing_iface_init (gpointer g_iface,
 #undef IMPLEMENT
 }
 
-void
+static void
 blist_node_aliased_cb (PurpleBlistNode *node,
                        const char *old_alias,
                        gpointer unused)
diff --git a/src/connection-avatars.c b/src/connection-avatars.c
index 455e8a7..ccb7376 100644
--- a/src/connection-avatars.c
+++ b/src/connection-avatars.c
@@ -29,7 +29,7 @@
 #include "connection.h"
 #include "debug.h"
 
-void
+static void
 haze_connection_get_avatar_requirements (TpSvcConnectionInterfaceAvatars *self,
                                          DBusGMethodInvocation *context)
 {
@@ -157,7 +157,7 @@ get_handle_token (HazeConnection *conn,
     return token;
 }
 
-void
+static void
 haze_connection_get_avatar_tokens (TpSvcConnectionInterfaceAvatars *self,
                                    const GArray *contacts,
                                    DBusGMethodInvocation *context)
@@ -181,7 +181,7 @@ haze_connection_get_avatar_tokens (TpSvcConnectionInterfaceAvatars *self,
     g_strfreev (icons);
 }
 
-void
+static void
 haze_connection_get_known_avatar_tokens (TpSvcConnectionInterfaceAvatars *self,
                                          const GArray *contacts,
                                          DBusGMethodInvocation *context)
@@ -244,7 +244,7 @@ haze_connection_get_known_avatar_tokens (TpSvcConnectionInterfaceAvatars *self,
     g_hash_table_unref (tokens);
 }
 
-void
+static void
 haze_connection_request_avatar (TpSvcConnectionInterfaceAvatars *self,
                                 guint contact,
                                 DBusGMethodInvocation *context)
@@ -277,7 +277,7 @@ haze_connection_request_avatar (TpSvcConnectionInterfaceAvatars *self,
     }
 }
 
-void
+static void
 haze_connection_request_avatars (TpSvcConnectionInterfaceAvatars *self,
                                  const GArray *contacts,
                                  DBusGMethodInvocation *context)
@@ -305,7 +305,7 @@ haze_connection_request_avatars (TpSvcConnectionInterfaceAvatars *self,
     tp_svc_connection_interface_avatars_return_from_request_avatars (context);
 }
 
-void
+static void
 haze_connection_clear_avatar (TpSvcConnectionInterfaceAvatars *self,
                               DBusGMethodInvocation *context)
 {
@@ -320,7 +320,7 @@ haze_connection_clear_avatar (TpSvcConnectionInterfaceAvatars *self,
         base_conn->self_handle, "");
 }
 
-void
+static void
 haze_connection_set_avatar (TpSvcConnectionInterfaceAvatars *self,
                             const GArray *avatar,
                             const gchar *mime_type,
@@ -385,7 +385,7 @@ haze_connection_avatars_iface_init (gpointer g_iface,
 #undef IMPLEMENT
 }
 
-void
+static void
 buddy_icon_changed_cb (PurpleBuddy *buddy,
                        gpointer unused)
 {
diff --git a/src/connection.c b/src/connection.c
index 8147336..caa909b 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -99,7 +99,7 @@ _get_param_string (GHashTable *parameters,
     }
 }
 
-void
+static void
 connected_cb (PurpleConnection *pc)
 {
     TpBaseConnection *base_conn = PC_GET_BASE_CONN (pc);
@@ -210,7 +210,7 @@ idle_disconnected_cb(gpointer data)
     return FALSE;
 }
 
-void
+static void
 disconnected_cb (PurpleConnection *pc)
 {
     PurpleAccount *account = purple_connection_get_account (pc);
@@ -412,7 +412,7 @@ _haze_connection_create_channel_factories (TpBaseConnection *base)
     return channel_factories;
 }
 
-gchar *
+static gchar *
 haze_connection_get_unique_connection_name(TpBaseConnection *base)
 {
     HazeConnection *self = HAZE_CONNECTION(base);
diff --git a/src/contact-list-channel.c b/src/contact-list-channel.c
index 2e3abba..d9d647a 100644
--- a/src/contact-list-channel.c
+++ b/src/contact-list-channel.c
@@ -600,7 +600,7 @@ haze_contact_list_channel_dispose (GObject *object)
         G_OBJECT_CLASS (haze_contact_list_channel_parent_class)->dispose (object);
 }
 
-void
+static void
 haze_contact_list_channel_finalize (GObject *object)
 {
 /*
diff --git a/src/contact-list.c b/src/contact-list.c
index 7c80e2c..53c3455 100644
--- a/src/contact-list.c
+++ b/src/contact-list.c
@@ -110,7 +110,7 @@ haze_contact_list_dispose (GObject *object)
         G_OBJECT_CLASS (haze_contact_list_parent_class)->dispose (object);
 }
 
-void
+static void
 haze_contact_list_finalize (GObject *object)
 {
 /*
@@ -516,7 +516,7 @@ _initial_buddies_foreach (PurpleBuddy *buddy,
 /* Creates a group channel on contact_list called group_name, containing the
  * supplied handles.  Called while traversing the buddy list at login.
  */
-gboolean
+static gboolean
 _create_initial_group(gchar *group_name,
                       TpIntSet *handles,
                       HazeContactList *contact_list)
diff --git a/src/im-channel.c b/src/im-channel.c
index 71c4f37..870d419 100644
--- a/src/im-channel.c
+++ b/src/im-channel.c
@@ -276,7 +276,7 @@ chat_state_iface_init (gpointer g_iface, gpointer iface_data)
 #undef IMPLEMENT
 }
 
-void
+static void
 haze_im_channel_send (TpSvcChannelTypeText *channel,
                       guint type,
                       const gchar *text,
-- 
1.5.6.5




More information about the Telepathy-commits mailing list