Changes in protocols/nogaim.h [c6ca3ee:4cf80bb]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
rc6ca3ee r4cf80bb 39 39 #define _NOGAIM_H 40 40 41 #include <stdint.h> 42 41 43 #include "bitlbee.h" 42 44 #include "account.h" … … 208 210 * not implement this. */ 209 211 struct groupchat * 210 (* chat_join) (struct im_connection *, c har *room, char *nick,char *password);212 (* chat_join) (struct im_connection *, const char *room, const char *nick, const char *password); 211 213 /* Change the topic, if supported. Note that BitlBee expects the IM 212 214 server to confirm the topic change with a regular topic change … … 223 225 * - Most protocols will just want to set this to g_strcasecmp().*/ 224 226 int (* handle_cmp) (const char *who1, const char *who2); 227 228 /* Implement these callbacks if you want to use imcb_ask_auth() */ 229 void (* auth_allow) (struct im_connection *, const char *who); 230 void (* auth_deny) (struct im_connection *, const char *who); 225 231 }; 226 232 … … 238 244 * the account_t parameter. */ 239 245 G_MODULE_EXPORT struct im_connection *imcb_new( account_t *acc ); 240 G_MODULE_EXPORT void imc b_free( struct im_connection *ic );246 G_MODULE_EXPORT void imc_free( struct im_connection *ic ); 241 247 /* Once you're connected, you should call this function, so that the user will 242 248 * see the success. */ … … 251 257 /* To tell the user an error, ie. before logging out when an error occurs. */ 252 258 G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ) G_GNUC_PRINTF( 2, 3 ); 259 253 260 /* To ask a your about something. 254 261 * - 'msg' is the question. … … 257 264 */ 258 265 G_MODULE_EXPORT void imcb_ask( struct im_connection *ic, char *msg, void *data, query_callback doit, query_callback dont ); 259 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, char *handle, const char *realname ); 266 267 /* Two common questions you may want to ask: 268 * - X added you to his contact list, allow? 269 * - X is not in your contact list, want to add? 270 */ 271 G_MODULE_EXPORT void imcb_ask_auth( struct im_connection *ic, const char *handle, const char *realname ); 272 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, const char *handle, const char *realname ); 260 273 261 274 /* Buddy management */ … … 263 276 * user, usually after a login, or if the user added a buddy and the IM 264 277 * server confirms that the add was successful. Don't forget to do this! */ 265 G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, c onst char *handle, constchar *group );266 G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, c onst char *handle, char *group );278 G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, char *handle, char *group ); 279 G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, char *handle, char *group ); 267 280 G_MODULE_EXPORT struct buddy *imcb_find_buddy( struct im_connection *ic, char *handle ); 268 G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, c onst char *handle, constchar *realname );281 G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, char *handle, char *realname ); 269 282 G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, char *handle, char *nick ); 270 283 … … 277 290 /* Not implemented yet! */ G_MODULE_EXPORT void imcb_buddy_times( struct im_connection *ic, const char *handle, time_t login, time_t idle ); 278 291 /* Call when a handle says something. 'flags' and 'sent_at may be just 0. */ 279 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, c onst char *handle, char *msg, uint32_t flags, time_t sent_at );292 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, char *handle, char *msg, uint32_t flags, time_t sent_at ); 280 293 G_MODULE_EXPORT void imcb_buddy_typing( struct im_connection *ic, char *handle, uint32_t flags ); 281 294 G_MODULE_EXPORT void imcb_clean_handle( struct im_connection *ic, char *handle ); … … 290 303 * user, too. */ 291 304 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle ); 292 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, c onst char *handle );305 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, char *handle ); 293 306 /* To remove a handle from a group chat. Reason can be NULL. */ 294 G_MODULE_EXPORT void imcb_chat_remove_buddy( struct groupchat *b, c onst char *handle, constchar *reason );307 G_MODULE_EXPORT void imcb_chat_remove_buddy( struct groupchat *b, char *handle, char *reason ); 295 308 /* To tell BitlBee 'who' said 'msg' in 'c'. 'flags' and 'sent_at' can be 0. */ 296 G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, c onst char *who, char *msg, uint32_t flags, time_t sent_at );309 G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, char *who, char *msg, uint32_t flags, time_t sent_at ); 297 310 /* System messages specific to a groupchat, so they can be displayed in the right context. */ 298 311 G_MODULE_EXPORT void imcb_chat_log( struct groupchat *c, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
Note: See TracChangeset
for help on using the changeset viewer.