- Timestamp:
- 2010-06-08T23:43:13Z (15 years ago)
- Branches:
- master
- Children:
- 6acc033
- Parents:
- d7db346
- Location:
- protocols/jabber
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
rd7db346 r46d215d 555 555 static xt_status jabber_add_to_roster_callback( struct im_connection *ic, struct xt_node *node, struct xt_node *orig ); 556 556 557 int jabber_add_to_roster( struct im_connection *ic, c har *handle, char *name)557 int jabber_add_to_roster( struct im_connection *ic, const char *handle, const char *name, const char *group ) 558 558 { 559 559 struct xt_node *node; … … 565 565 if( name ) 566 566 xt_add_attr( node, "name", name ); 567 if( group ) 568 xt_add_child( node, xt_new_node( "group", group, NULL ) ); 567 569 568 570 /* And pack it into a roster-add packet */ -
protocols/jabber/jabber.c
rd7db346 r46d215d 413 413 } 414 414 415 if( jabber_add_to_roster( ic, who, NULL ) )415 if( jabber_add_to_roster( ic, who, NULL, group ) ) 416 416 presence_send_request( ic, who, "subscribe" ); 417 417 } -
protocols/jabber/jabber.h
rd7db346 r46d215d 235 235 int jabber_get_roster( struct im_connection *ic ); 236 236 int jabber_get_vcard( struct im_connection *ic, char *bare_jid ); 237 int jabber_add_to_roster( struct im_connection *ic, c har *handle, char *name);237 int jabber_add_to_roster( struct im_connection *ic, const char *handle, const char *name, const char *group ); 238 238 int jabber_remove_from_roster( struct im_connection *ic, char *handle ); 239 239 xt_status jabber_iq_query_features( struct im_connection *ic, char *bare_jid );
Note: See TracChangeset
for help on using the changeset viewer.