Changes in protocols/nogaim.h [c6ca3ee:cca0692]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
rc6ca3ee rcca0692 39 39 #define _NOGAIM_H 40 40 41 #include <stdint.h> 42 41 43 #include "bitlbee.h" 42 44 #include "account.h" … … 47 49 48 50 #define WEBSITE "http://www.bitlbee.org/" 49 #define GAIM_AWAY_CUSTOM "Custom"50 51 51 52 /* Sharing flags between all kinds of things. I just hope I won't hit any … … 208 209 * not implement this. */ 209 210 struct groupchat * 210 (* chat_join) (struct im_connection *, c har *room, char *nick,char *password);211 (* chat_join) (struct im_connection *, const char *room, const char *nick, const char *password); 211 212 /* Change the topic, if supported. Note that BitlBee expects the IM 212 213 server to confirm the topic change with a regular topic change … … 216 217 217 218 /* You can tell what away states your protocol supports, so that 218 * BitlBee will try to map the IRC away reasons to them , or use219 * GAIM_AWAY_CUSTOM when calling skype_set_away(). */219 * BitlBee will try to map the IRC away reasons to them. If your 220 * protocol doesn't have any, just return one generic "Away". */ 220 221 GList *(* away_states)(struct im_connection *ic); 221 222 … … 223 224 * - Most protocols will just want to set this to g_strcasecmp().*/ 224 225 int (* handle_cmp) (const char *who1, const char *who2); 226 227 /* Implement these callbacks if you want to use imcb_ask_auth() */ 228 void (* auth_allow) (struct im_connection *, const char *who); 229 void (* auth_deny) (struct im_connection *, const char *who); 225 230 }; 226 231 … … 238 243 * the account_t parameter. */ 239 244 G_MODULE_EXPORT struct im_connection *imcb_new( account_t *acc ); 240 G_MODULE_EXPORT void imc b_free( struct im_connection *ic );245 G_MODULE_EXPORT void imc_free( struct im_connection *ic ); 241 246 /* Once you're connected, you should call this function, so that the user will 242 247 * see the success. */ … … 251 256 /* To tell the user an error, ie. before logging out when an error occurs. */ 252 257 G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ) G_GNUC_PRINTF( 2, 3 ); 258 253 259 /* To ask a your about something. 254 260 * - 'msg' is the question. … … 257 263 */ 258 264 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 ); 265 266 /* Two common questions you may want to ask: 267 * - X added you to his contact list, allow? 268 * - X is not in your contact list, want to add? 269 */ 270 G_MODULE_EXPORT void imcb_ask_auth( struct im_connection *ic, const char *handle, const char *realname ); 271 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, const char *handle, const char *realname ); 260 272 261 273 /* Buddy management */ … … 267 279 G_MODULE_EXPORT struct buddy *imcb_find_buddy( struct im_connection *ic, char *handle ); 268 280 G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, const char *handle, const char *realname ); 269 G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, c har *handle,char *nick );281 G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, const char *handle, const char *nick ); 270 282 271 283 /* Buddy activity */ … … 290 302 * user, too. */ 291 303 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle ); 304 G_MODULE_EXPORT void imcb_chat_name_hint( struct groupchat *c, const char *name ); 292 305 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, const char *handle ); 293 306 /* To remove a handle from a group chat. Reason can be NULL. */ … … 302 315 303 316 /* Actions, or whatever. */ 304 int imc_ set_away( struct im_connection *ic, char *away);317 int imc_away_send_update( struct im_connection *ic ); 305 318 int imc_buddy_msg( struct im_connection *ic, char *handle, char *msg, int flags ); 306 319 int imc_chat_msg( struct groupchat *c, char *msg, int flags ); … … 312 325 313 326 /* Misc. stuff */ 327 char *set_eval_timezone( set_t *set, char *value ); 314 328 char *set_eval_away_devoice( set_t *set, char *value ); 315 329 gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond );
Note: See TracChangeset
for help on using the changeset viewer.