Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    rc0c43fb r4cf80bb  
    3939#define _NOGAIM_H
    4040
     41#include <stdint.h>
     42
    4143#include "bitlbee.h"
    4244#include "account.h"
    4345#include "proxy.h"
    4446#include "query.h"
    45 #include "md5.h"
    4647
    4748#define BUDDY_ALIAS_MAXLEN 388   /* because MSN names can be 387 characters */
     
    224225         * - Most protocols will just want to set this to g_strcasecmp().*/
    225226        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);
    226231};
    227232
     
    252257/* To tell the user an error, ie. before logging out when an error occurs. */
    253258G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
     259
    254260/* To ask a your about something.
    255261 * - 'msg' is the question.
     
    258264 */
    259265G_MODULE_EXPORT void imcb_ask( struct im_connection *ic, char *msg, void *data, query_callback doit, query_callback dont );
    260 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 */
     271G_MODULE_EXPORT void imcb_ask_auth( struct im_connection *ic, const char *handle, const char *realname );
     272G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, const char *handle, const char *realname );
    261273
    262274/* Buddy management */
Note: See TracChangeset for help on using the changeset viewer.