# HG changeset patch # User Stu Tomlinson # Date 1134133304 0 # Node ID 488a305f9affd6a97bcd662fb30ffaf4999a6941 # Parent 8edb08af68c7780e86b6d98ab22219a42e081656 [gaim-migrate @ 14750] Make some functions static committer: Tailor Script diff -r 8edb08af68c7 -r 488a305f9aff src/protocols/bonjour/bonjour.c --- a/src/protocols/bonjour/bonjour.c Fri Dec 09 12:52:45 2005 +0000 +++ b/src/protocols/bonjour/bonjour.c Fri Dec 09 13:01:44 2005 +0000 @@ -84,7 +84,7 @@ } } -void +static void bonjour_login(GaimAccount *account) { GaimConnection *gc = gaim_account_get_connection(account); @@ -151,7 +151,7 @@ gaim_connection_set_state(gc, GAIM_CONNECTED); } -void +static void bonjour_close(GaimConnection *connection) { GaimGroup *bonjour_group = gaim_find_group(BONJOUR_GROUP_NAME); @@ -179,13 +179,13 @@ } -const char * +static const char * bonjour_list_icon(GaimAccount *account, GaimBuddy *buddy) { return BONJOUR_ICON_NAME; } -int +static int bonjour_send_im(GaimConnection *connection, const char *to, const char *msg, GaimMessageFlags flags) { if(!to || !msg) @@ -194,7 +194,7 @@ return bonjour_jabber_send_message(((BonjourData*)(connection->proto_data))->jabber_data, to, msg); } -void +static void bonjour_set_status(GaimAccount *account, GaimStatus *status) { GaimConnection *gc; diff -r 8edb08af68c7 -r 488a305f9aff src/protocols/bonjour/jabber.c --- a/src/protocols/bonjour/jabber.c Fri Dec 09 12:52:45 2005 +0000 +++ b/src/protocols/bonjour/jabber.c Fri Dec 09 13:01:44 2005 +0000 @@ -45,7 +45,7 @@ #include "bonjour.h" #include "buddy.h" -gint +static gint _connect_to_buddy(GaimBuddy *gb) { gint socket_fd; @@ -69,7 +69,8 @@ return socket_fd; } -const char * +#if 0 /* this isn't used anywhere... */ +static const char * _font_size_gaim_to_ichat(int size) { switch (size) { @@ -91,8 +92,9 @@ return "12"; } +#endif -const char * +static const char * _font_size_ichat_to_gaim(int size) { if (size > 24) { @@ -111,7 +113,7 @@ return "1"; } -void +static void _jabber_parse_and_write_message_to_ui(char *message, GaimConnection *connection, GaimBuddy *gb) { xmlnode *body_node = NULL; @@ -216,7 +218,7 @@ g_free(html_body); } -gboolean +static gboolean _check_buddy_by_address(gpointer key, gpointer value, gpointer address) { GaimBuddy *gb = (GaimBuddy*)value; @@ -234,7 +236,7 @@ } } -gint +static gint _read_data(gint socket, char **message) { GString *data = g_string_new(""); @@ -265,7 +267,7 @@ return total_message_length; } -gint +static gint _send_data(gint socket, char *message) { gint message_len = strlen(message); @@ -285,7 +287,7 @@ return strlen(message); } -void +static void _client_socket_handler(gpointer data, gint socket, GaimInputCondition condition) { char *message = NULL; @@ -360,7 +362,7 @@ } } -void +static void _server_socket_handler(gpointer data, int server_socket, GaimInputCondition condition) { GaimBuddy *gb = NULL;