Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    raea8b68 rcca0692  
    22  * BitlBee -- An IRC to other IM-networks gateway                     *
    33  *                                                                    *
    4   * Copyright 2002-2010 Wilmer van der Gaast and others                *
     4  * Copyright 2002-2004 Wilmer van der Gaast and others                *
    55  \********************************************************************/
    66
     
    4545#include "proxy.h"
    4646#include "query.h"
    47 #include "md5.h"
    48 #include "ft.h"
    4947
    5048#define BUDDY_ALIAS_MAXLEN 388   /* because MSN names can be 387 characters */
     
    8785       
    8886        /* BitlBee */
    89         bee_t *bee;
    90        
    91         GSList *groupchats;
     87        irc_t *irc;
     88       
     89        struct groupchat *groupchats;
    9290};
    9391
     
    10098         * already, for example to avoid adding somebody two times. */
    10199        GList *in_room;
    102         //GList *ignored;
    103        
    104         //struct groupchat *next;
     100        GList *ignored;
     101       
     102        struct groupchat *next;
     103        char *channel;
    105104        /* The title variable contains the ID you gave when you created the
    106105         * chat using imcb_chat_new(). */
     
    113112         * structure for your protocol's needs. */
    114113        void *data;
    115         void *ui_data;
    116114};
    117115
     
    230228        void (* auth_allow)     (struct im_connection *, const char *who);
    231229        void (* auth_deny)      (struct im_connection *, const char *who);
    232 
    233         /* Incoming transfer request */
    234         void (* transfer_request) (struct im_connection *, file_transfer_t *ft, char *handle );
    235230};
    236231
     
    286281G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, const char *handle, const char *nick );
    287282
     283/* Buddy activity */
     284/* To manipulate the status of a handle.
     285 * - flags can be |='d with OPT_* constants. You will need at least:
     286 *   OPT_LOGGED_IN and OPT_AWAY.
     287 * - 'state' and 'message' can be NULL */
     288G_MODULE_EXPORT void imcb_buddy_status( struct im_connection *ic, const char *handle, int flags, const char *state, const char *message );
     289/* Not implemented yet! */ G_MODULE_EXPORT void imcb_buddy_times( struct im_connection *ic, const char *handle, time_t login, time_t idle );
     290/* Call when a handle says something. 'flags' and 'sent_at may be just 0. */
     291G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at );
    288292G_MODULE_EXPORT void imcb_buddy_typing( struct im_connection *ic, char *handle, uint32_t flags );
    289 G_MODULE_EXPORT struct bee_user *imcb_buddy_by_handle( struct im_connection *ic, const char *handle );
    290293G_MODULE_EXPORT void imcb_clean_handle( struct im_connection *ic, char *handle );
    291294
     
    313316/* Actions, or whatever. */
    314317int imc_away_send_update( struct im_connection *ic );
     318int imc_buddy_msg( struct im_connection *ic, char *handle, char *msg, int flags );
    315319int imc_chat_msg( struct groupchat *c, char *msg, int flags );
    316320
     
    321325
    322326/* Misc. stuff */
     327char *set_eval_timezone( set_t *set, char *value );
    323328char *set_eval_away_devoice( set_t *set, char *value );
    324329gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond );
Note: See TracChangeset for help on using the changeset viewer.