Changeset 9624fdf for protocols/nogaim.h


Ignore:
Timestamp:
2007-04-17T04:49:17Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
33dc261
Parents:
717e3bf
Message:

API cleanup pretty much complete. Fixed pretty much everything except the
buddy/groupchat related functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    r717e3bf r9624fdf  
    5050#define BUF_LEN MSG_LEN
    5151
    52 #define SELF_ALIAS_LEN 400
    5352#define BUDDY_ALIAS_MAXLEN 388   /* because MSN names can be 387 characters */
    5453
     
    5655#define GAIM_AWAY_CUSTOM "Custom"
    5756
    58 /* Sharing flags between buddies and connections. Or planning to, at least... */
     57/* Sharing flags between all kinds of things. I just hope I won't hit any
     58   limits before 32-bit machines become extinct. ;-) */
    5959#define OPT_LOGGED_IN   0x00000001
    6060#define OPT_LOGGING_OUT 0x00000002
    6161#define OPT_AWAY        0x00000004
    6262#define OPT_DOES_HTML   0x00000010
     63#define OPT_TYPING      0x00000100
     64#define OPT_THINKING    0x00000200
    6365
    6466/* ok. now the fun begins. first we create a connection structure */
     
    136138        void (* set_away)       (struct im_connection *, char *state, char *message);
    137139        void (* get_away)       (struct im_connection *, char *who);
    138         int  (* send_typing)    (struct im_connection *, char *who, int typing);
     140        int  (* send_typing)    (struct im_connection *, char *who, int flags);
    139141       
    140142        /* For now BitlBee doesn't really handle groups, just set it to NULL. */
     
    171173};
    172174
    173 #define UC_UNAVAILABLE  1
    174 
    175175/* im_api core stuff. */
    176176void nogaim_init();
     
    208208G_MODULE_EXPORT void imcb_buddy_status( struct im_connection *ic, const char *handle, int flags, const char *state, const char *message );
    209209/* Not implemented yet! */ G_MODULE_EXPORT void imcb_buddy_times( struct im_connection *ic, const char *handle, time_t login, time_t idle );
    210 G_MODULE_EXPORT void serv_got_im( struct im_connection *ic, char *handle, char *msg, guint32 flags, time_t mtime, gint len );
    211 G_MODULE_EXPORT void serv_got_typing( struct im_connection *ic, char *handle, int timeout, int type );
     210G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, char *handle, char *msg, u_int32_t flags, time_t sent_at );
     211G_MODULE_EXPORT void imcb_buddy_typing( struct im_connection *ic, char *handle, u_int32_t flags );
    212212
    213213/* Actions, or whatever. */
Note: See TracChangeset for help on using the changeset viewer.