Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    rcca0692 raea8b68  
    22  * BitlBee -- An IRC to other IM-networks gateway                     *
    33  *                                                                    *
    4   * Copyright 2002-2004 Wilmer van der Gaast and others                *
     4  * Copyright 2002-2010 Wilmer van der Gaast and others                *
    55  \********************************************************************/
    66
     
    4545#include "proxy.h"
    4646#include "query.h"
     47#include "md5.h"
     48#include "ft.h"
    4749
    4850#define BUDDY_ALIAS_MAXLEN 388   /* because MSN names can be 387 characters */
     
    8587       
    8688        /* BitlBee */
    87         irc_t *irc;
    88        
    89         struct groupchat *groupchats;
     89        bee_t *bee;
     90       
     91        GSList *groupchats;
    9092};
    9193
     
    98100         * already, for example to avoid adding somebody two times. */
    99101        GList *in_room;
    100         GList *ignored;
    101        
    102         struct groupchat *next;
    103         char *channel;
     102        //GList *ignored;
     103       
     104        //struct groupchat *next;
    104105        /* The title variable contains the ID you gave when you created the
    105106         * chat using imcb_chat_new(). */
     
    112113         * structure for your protocol's needs. */
    113114        void *data;
     115        void *ui_data;
    114116};
    115117
     
    228230        void (* auth_allow)     (struct im_connection *, const char *who);
    229231        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 );
    230235};
    231236
     
    281286G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, const char *handle, const char *nick );
    282287
    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 */
    288 G_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. */
    291 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at );
    292288G_MODULE_EXPORT void imcb_buddy_typing( struct im_connection *ic, char *handle, uint32_t flags );
     289G_MODULE_EXPORT struct bee_user *imcb_buddy_by_handle( struct im_connection *ic, const char *handle );
    293290G_MODULE_EXPORT void imcb_clean_handle( struct im_connection *ic, char *handle );
    294291
     
    316313/* Actions, or whatever. */
    317314int imc_away_send_update( struct im_connection *ic );
    318 int imc_buddy_msg( struct im_connection *ic, char *handle, char *msg, int flags );
    319315int imc_chat_msg( struct groupchat *c, char *msg, int flags );
    320316
     
    325321
    326322/* Misc. stuff */
    327 char *set_eval_timezone( set_t *set, char *value );
    328323char *set_eval_away_devoice( set_t *set, char *value );
    329324gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond );
Note: See TracChangeset for help on using the changeset viewer.