Ignore:
Timestamp:
2009-10-10T13:39:51Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ba16895
Parents:
e59b4f6
Message:

Added imcb_ask_auth() instead of reimplementing authorization requests
in every protocol module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    re59b4f6 rfa295e36  
    224224         * - Most protocols will just want to set this to g_strcasecmp().*/
    225225        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);
    226230};
    227231
     
    252256/* To tell the user an error, ie. before logging out when an error occurs. */
    253257G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
     258
    254259/* To ask a your about something.
    255260 * - 'msg' is the question.
     
    258263 */
    259264G_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 );
     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 */
     270G_MODULE_EXPORT void imcb_ask_auth( struct im_connection *ic, const char *handle, const char *realname );
     271G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, const char *handle, const char *realname );
    261272
    262273/* Buddy management */
Note: See TracChangeset for help on using the changeset viewer.