aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/nogaim.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-04-18 23:03:43 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2007-04-18 23:03:43 -0700
commitf0cb961652cbd639e89dcd88a86f20a2414146c4 (patch)
tree7bddf3e5f8cd1402639b134773adcb4d04c375dc /protocols/nogaim.h
parent33dc2618520409c0d52efff335fe299c26f6dd42 (diff)
More API changes: buddy list management. imcb_add_buddy() is now a *real*
callback, it's only called from inside IM-modules. This makes sure a buddy only gets added to the BitlBee structures if the add was successful. This gets rid of the weirdness described in #55. Unfortunately for now this change breaks A) automatic renaming of ICQ contacts (if there are names stored in the contact list) B) add -tmp.
Diffstat (limited to 'protocols/nogaim.h')
-rw-r--r--protocols/nogaim.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/nogaim.h b/protocols/nogaim.h
index e249ae0e..e17c9523 100644
--- a/protocols/nogaim.h
+++ b/protocols/nogaim.h
@@ -200,9 +200,10 @@ G_MODULE_EXPORT void serv_got_chat_left( struct groupchat *c );
struct groupchat *chat_by_channel( char *channel );
/* Buddy management */
-G_MODULE_EXPORT void add_buddy( struct im_connection *ic, char *group, char *handle, char *realname );
-G_MODULE_EXPORT struct buddy *find_buddy( struct im_connection *ic, char *handle );
-G_MODULE_EXPORT void serv_buddy_rename( struct im_connection *ic, char *handle, char *realname );
+G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, char *handle, char *group );
+G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, char *handle, char *group );
+G_MODULE_EXPORT struct buddy *imcb_find_buddy( struct im_connection *ic, char *handle );
+G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, char *handle, char *realname );
/* Buddy activity */
G_MODULE_EXPORT void imcb_buddy_status( struct im_connection *ic, const char *handle, int flags, const char *state, const char *message );