1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Renamed roster_add_new -> roster_send_add_new

This commit is contained in:
James Booth 2014-01-05 20:33:48 +00:00
parent 61ea120bfd
commit 4a8d6c2153
4 changed files with 4 additions and 7 deletions

View File

@ -1066,7 +1066,7 @@ cmd_roster(gchar **args, struct cmd_help_t help)
char *jid = args[1]; char *jid = args[1];
char *name = args[2]; char *name = args[2];
roster_add_new(jid, name); roster_send_add_new(jid, name);
return TRUE; return TRUE;
} }

View File

@ -82,7 +82,7 @@ roster_request(void)
} }
static 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_conn_t * const conn = connection_get_conn();
xmpp_ctx_t * const ctx = connection_get_ctx(); xmpp_ctx_t * const ctx = connection_get_ctx();
@ -327,7 +327,7 @@ _get_groups_from_item(xmpp_stanza_t *item)
void void
roster_init_module(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_remove = _roster_send_remove;
roster_send_name_change = _roster_send_name_change; roster_send_name_change = _roster_send_name_change;
roster_send_add_to_group = _roster_send_add_to_group; roster_send_add_to_group = _roster_send_add_to_group;

View File

@ -26,7 +26,4 @@
void roster_add_handlers(void); void roster_add_handlers(void);
void roster_request(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 #endif

View File

@ -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_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_add_to_group)(const char * const group, PContact contact);
void (*roster_send_remove_from_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); void (*roster_send_remove)(const char * const barejid);
#endif #endif