Changes in protocols/nogaim.h [fa295e36:424e663]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
rfa295e36 r424e663 209 209 * not implement this. */ 210 210 struct groupchat * 211 (* chat_join) (struct im_connection *, c onst char *room, const char *nick, constchar *password);211 (* chat_join) (struct im_connection *, char *room, char *nick, char *password); 212 212 /* Change the topic, if supported. Note that BitlBee expects the IM 213 213 server to confirm the topic change with a regular topic change … … 224 224 * - Most protocols will just want to set this to g_strcasecmp().*/ 225 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);230 226 }; 231 227 … … 243 239 * the account_t parameter. */ 244 240 G_MODULE_EXPORT struct im_connection *imcb_new( account_t *acc ); 245 G_MODULE_EXPORT void imc _free( struct im_connection *ic );241 G_MODULE_EXPORT void imcb_free( struct im_connection *ic ); 246 242 /* Once you're connected, you should call this function, so that the user will 247 243 * see the success. */ … … 256 252 /* To tell the user an error, ie. before logging out when an error occurs. */ 257 253 G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ) G_GNUC_PRINTF( 2, 3 ); 258 259 254 /* To ask a your about something. 260 255 * - 'msg' is the question. … … 263 258 */ 264 259 G_MODULE_EXPORT void imcb_ask( struct im_connection *ic, char *msg, void *data, query_callback doit, query_callback dont ); 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 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, char *handle, const char *realname ); 272 261 273 262 /* Buddy management */ … … 301 290 * the user her/himself. At that point the group chat will be visible to the 302 291 * user, too. */ 303 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, c onst char *handle );292 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, char *handle ); 304 293 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, char *handle ); 305 294 /* To remove a handle from a group chat. Reason can be NULL. */
Note: See TracChangeset
for help on using the changeset viewer.