Changeset 2288705 for protocols/nogaim.h


Ignore:
Timestamp:
2009-12-07T21:54:19Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
1c3008a
Parents:
aac4017 (diff), 36cf9fd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging head.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    raac4017 r2288705  
    3939#define _NOGAIM_H
    4040
     41#include <stdint.h>
     42
    4143#include "bitlbee.h"
    4244#include "account.h"
     
    210212         * not implement this. */
    211213        struct groupchat *
    212              (* chat_join)      (struct im_connection *, char *room, char *nick, char *password);
     214             (* chat_join)      (struct im_connection *, const char *room, const char *nick, const char *password);
    213215        /* Change the topic, if supported. Note that BitlBee expects the IM
    214216           server to confirm the topic change with a regular topic change
     
    225227         * - Most protocols will just want to set this to g_strcasecmp().*/
    226228        int (* handle_cmp) (const char *who1, const char *who2);
     229
     230        /* Implement these callbacks if you want to use imcb_ask_auth() */
     231        void (* auth_allow)     (struct im_connection *, const char *who);
     232        void (* auth_deny)      (struct im_connection *, const char *who);
    227233
    228234        /* Incoming transfer request */
     
    243249 * the account_t parameter. */
    244250G_MODULE_EXPORT struct im_connection *imcb_new( account_t *acc );
    245 G_MODULE_EXPORT void imcb_free( struct im_connection *ic );
     251G_MODULE_EXPORT void imc_free( struct im_connection *ic );
    246252/* Once you're connected, you should call this function, so that the user will
    247253 * see the success. */
     
    256262/* To tell the user an error, ie. before logging out when an error occurs. */
    257263G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
     264
    258265/* To ask a your about something.
    259266 * - 'msg' is the question.
     
    262269 */
    263270G_MODULE_EXPORT void imcb_ask( struct im_connection *ic, char *msg, void *data, query_callback doit, query_callback dont );
    264 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, char *handle, const char *realname );
     271
     272/* Two common questions you may want to ask:
     273 * - X added you to his contact list, allow?
     274 * - X is not in your contact list, want to add?
     275 */
     276G_MODULE_EXPORT void imcb_ask_auth( struct im_connection *ic, const char *handle, const char *realname );
     277G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, const char *handle, const char *realname );
    265278
    266279/* Buddy management */
     
    294307 *   the user her/himself. At that point the group chat will be visible to the
    295308 *   user, too. */
    296 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, char *handle );
     309G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle );
    297310G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, char *handle );
    298311/* To remove a handle from a group chat. Reason can be NULL. */
Note: See TracChangeset for help on using the changeset viewer.