Changes in protocols/nogaim.h [ef5c185:acd61b9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
ref5c185 racd61b9 61 61 #define OPT_AWAY 0x00000004 62 62 #define OPT_DOES_HTML 0x00000010 63 #define OPT_LOCALBUDDY 0x00000020 /* For nicks local to one groupchat */64 63 #define OPT_TYPING 0x00000100 /* Some pieces of code make assumptions */ 65 64 #define OPT_THINKING 0x00000200 /* about these values... Stupid me! */ … … 92 91 irc_t *irc; 93 92 94 struct groupchat * groupchats;93 struct groupchat *conversations; 95 94 }; 96 95 … … 105 104 GList *ignored; 106 105 106 /* BitlBee */ 107 107 struct groupchat *next; 108 108 char *channel; … … 110 110 * chat using imcb_chat_new(). */ 111 111 char *title; 112 /* Use imcb_chat_topic() to change this variable otherwise the user113 * won't notice the topic change. */114 char *topic;115 112 char joined; 116 113 /* This is for you, you can add your own structure here to extend this … … 215 212 struct groupchat * 216 213 (* chat_join) (struct im_connection *, char *room, char *nick, char *password); 217 /* Change the topic, if supported. Note that BitlBee expects the IM218 server to confirm the topic change with a regular topic change219 event. If it doesn't do that, you have to fake it to make it220 visible to the user. */221 void (* chat_topic) (struct groupchat *, char *topic);222 214 223 215 /* You can tell what away states your protocol supports, so that … … 267 259 /* Buddy management */ 268 260 /* This function should be called for each handle which are visible to the 269 * user, usually after a login, or if the user added a buddy and the IM 270 * server confirms that the add was successful. Don't forget to do this! */ 261 * user, usually after a login. */ 271 262 G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, char *handle, char *group ); 272 263 G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, char *handle, char *group ); 273 264 G_MODULE_EXPORT struct buddy *imcb_find_buddy( struct im_connection *ic, char *handle ); 274 265 G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, char *handle, char *realname ); 275 G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, char *handle, char *nick );276 266 277 267 /* Buddy activity */ … … 285 275 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, char *handle, char *msg, u_int32_t flags, time_t sent_at ); 286 276 G_MODULE_EXPORT void imcb_buddy_typing( struct im_connection *ic, char *handle, u_int32_t flags ); 287 G_MODULE_EXPORT void imcb_clean_handle( struct im_connection *ic, char *handle );288 277 289 278 /* Groupchats */ … … 301 290 /* To tell BitlBee 'who' said 'msg' in 'c'. 'flags' and 'sent_at' can be 0. */ 302 291 G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, char *who, char *msg, u_int32_t flags, time_t sent_at ); 303 /* To tell BitlBee 'who' changed the topic of 'c' to 'topic'. */ 304 G_MODULE_EXPORT void imcb_chat_topic( struct groupchat *c, char *who, char *topic, time_t set_at ); 305 G_MODULE_EXPORT void imcb_chat_free( struct groupchat *c ); 292 G_MODULE_EXPORT void imcb_chat_removed( struct groupchat *c ); 293 struct groupchat *chat_by_channel( char *channel ); 306 294 307 295 /* Actions, or whatever. */
Note: See TracChangeset
for help on using the changeset viewer.