1 edited


  • protocols/nogaim.h

    r4cf80bb rc6ca3ee  
    3939#define _NOGAIM_H
    41 #include <stdint.h>
    4341#include "bitlbee.h"
    4442#include "account.h"
    210208         * not implement this. */
    211209        struct groupchat *
    212              (* chat_join)      (struct im_connection *, const char *room, const char *nick, const char *password);
     210             (* chat_join)      (struct im_connection *, char *room, char *nick, char *password);
    213211        /* Change the topic, if supported. Note that BitlBee expects the IM
    214212           server to confirm the topic change with a regular topic change
    225223         * - Most protocols will just want to set this to g_strcasecmp().*/
    226224        int (* handle_cmp) (const char *who1, const char *who2);
    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);
    244238 * the account_t parameter. */
    245239G_MODULE_EXPORT struct im_connection *imcb_new( account_t *acc );
    246 G_MODULE_EXPORT void imc_free( struct im_connection *ic );
     240G_MODULE_EXPORT void imcb_free( struct im_connection *ic );
    247241/* Once you're connected, you should call this function, so that the user will
    248242 * see the success. */
    257251/* To tell the user an error, ie. before logging out when an error occurs. */
    258252G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
    260253/* To ask a your about something.
    261254 * - 'msg' is the question.
    264257 */
    265258G_MODULE_EXPORT void imcb_ask( struct im_connection *ic, char *msg, void *data, query_callback doit, query_callback dont );
    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  */
    271 G_MODULE_EXPORT void imcb_ask_auth( struct im_connection *ic, const char *handle, const char *realname );
    272 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, const char *handle, const char *realname );
     259G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, char *handle, const char *realname );
    274261/* Buddy management */
    276263 * user, usually after a login, or if the user added a buddy and the IM
    277264 * server confirms that the add was successful. Don't forget to do this! */
    278 G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, char *handle, char *group );
    279 G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, char *handle, char *group );
     265G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, const char *handle, const char *group );
     266G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, const char *handle, char *group );
    280267G_MODULE_EXPORT struct buddy *imcb_find_buddy( struct im_connection *ic, char *handle );
    281 G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, char *handle, char *realname );
     268G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, const char *handle, const char *realname );
    282269G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, char *handle, char *nick );
    290277/* Not implemented yet! */ G_MODULE_EXPORT void imcb_buddy_times( struct im_connection *ic, const char *handle, time_t login, time_t idle );
    291278/* Call when a handle says something. 'flags' and 'sent_at may be just 0. */
    292 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, char *handle, char *msg, uint32_t flags, time_t sent_at );
     279G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at );
    293280G_MODULE_EXPORT void imcb_buddy_typing( struct im_connection *ic, char *handle, uint32_t flags );
    294281G_MODULE_EXPORT void imcb_clean_handle( struct im_connection *ic, char *handle );
    303290 *   user, too. */
    304291G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle );
    305 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, char *handle );
     292G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, const char *handle );
    306293/* To remove a handle from a group chat. Reason can be NULL. */
    307 G_MODULE_EXPORT void imcb_chat_remove_buddy( struct groupchat *b, char *handle, char *reason );
     294G_MODULE_EXPORT void imcb_chat_remove_buddy( struct groupchat *b, const char *handle, const char *reason );
    308295/* To tell BitlBee 'who' said 'msg' in 'c'. 'flags' and 'sent_at' can be 0. */
    309 G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, char *who, char *msg, uint32_t flags, time_t sent_at );
     296G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, const char *who, char *msg, uint32_t flags, time_t sent_at );
    310297/* System messages specific to a groupchat, so they can be displayed in the right context. */
    311298G_MODULE_EXPORT void imcb_chat_log( struct groupchat *c, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
Note: See TracChangeset for help on using the changeset viewer.