diff --git a/src/command/commands.c b/src/command/commands.c index f09bf0e4..4da29932 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1066,7 +1066,7 @@ cmd_roster(gchar **args, struct cmd_help_t help) char *jid = args[1]; char *name = args[2]; - roster_add_new(jid, name); + roster_send_add_new(jid, name); return TRUE; } diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c index e84de155..52bda5ce 100644 --- a/src/xmpp/roster.c +++ b/src/xmpp/roster.c @@ -82,7 +82,7 @@ roster_request(void) } static void -_roster_add_new(const char * const barejid, const char * const name) +_roster_send_add_new(const char * const barejid, const char * const name) { xmpp_conn_t * const conn = connection_get_conn(); xmpp_ctx_t * const ctx = connection_get_ctx(); @@ -327,7 +327,7 @@ _get_groups_from_item(xmpp_stanza_t *item) void roster_init_module(void) { - roster_add_new = _roster_add_new; + roster_send_add_new = _roster_send_add_new; roster_send_remove = _roster_send_remove; roster_send_name_change = _roster_send_name_change; roster_send_add_to_group = _roster_send_add_to_group; diff --git a/src/xmpp/roster.h b/src/xmpp/roster.h index 1faaba86..5fde0a2b 100644 --- a/src/xmpp/roster.h +++ b/src/xmpp/roster.h @@ -26,7 +26,4 @@ void roster_add_handlers(void); void roster_request(void); -void roster_update(const char * const barejid, const char * const name, - GSList *groups, const char * const subscription, gboolean pending_out); - #endif diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h index 90b17e59..87cde006 100644 --- a/src/xmpp/xmpp.h +++ b/src/xmpp/xmpp.h @@ -141,7 +141,7 @@ void (*bookmark_autocomplete_reset)(void); void (*roster_send_name_change)(const char * const barejid, const char * const new_name, GSList *groups); void (*roster_send_add_to_group)(const char * const group, PContact contact); void (*roster_send_remove_from_group)(const char * const group, PContact contact); -void (*roster_add_new)(const char * const barejid, const char * const name); +void (*roster_send_add_new)(const char * const barejid, const char * const name); void (*roster_send_remove)(const char * const barejid); #endif