Changeset 6bbb939 for protocols/nogaim.h


Ignore:
Timestamp:
2007-04-16T04:01:13Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
cfc8d58
Parents:
84b045d
Message:

Split serv_got_update() into imcb_buddy_(status|times). (Well, the second
one isn't implemented yet, but I'll do that later.) At last I got rid of
the hack called get_status_string(). And now Yahoo seems to mess up away
messages...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    r84b045d r6bbb939  
    66
    77/*
    8  * nogaim
     8 * nogaim, soon to be known as im_api. Not a separate product (unless
     9 * someone would be interested in such a thing), just a new name.
    910 *
    1011 * Gaim without gaim - for BitlBee
     
    1516 * Copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
    1617 *                          (and possibly other members of the Gaim team)
    17  * Copyright 2002-2004 Wilmer van der Gaast <wilmer@gaast.net>
     18 * Copyright 2002-2007 Wilmer van der Gaast <wilmer@gaast.net>
    1819 */
    1920
     
    4445#include "sha.h"
    4546
    46 
    4747#define BUF_LEN MSG_LEN
    4848#define BUF_LONG ( BUF_LEN * 2 )
     
    5454
    5555#define WEBSITE "http://www.bitlbee.org/"
    56 #define IM_FLAG_AWAY 0x0020
    5756#define GAIM_AWAY_CUSTOM "Custom"
    5857
    59 #define OPT_CONN_HTML   0x00000001
    60 #define OPT_LOGGED_IN   0x00010000
    61 #define OPT_LOGGING_OUT 0x00020000
     58/* Sharing flags between buddies and connections. Or planning to, at least... */
     59#define OPT_LOGGED_IN   0x00000001
     60#define OPT_LOGGING_OUT 0x00000002
     61#define OPT_AWAY        0x00000004
     62#define OPT_DOES_HTML   0x00000010
    6263
    6364/* ok. now the fun begins. first we create a connection structure */
     
    6566{
    6667        account_t *acc;
    67         guint32 flags;
     68        u_int32_t flags;
    6869       
    6970        /* each connection then can have its own protocol-specific data */
     
    164165             (* chat_join)      (struct im_connection *, char *chat, char *nick, char *password);
    165166       
    166         /* DIE! */
    167         char *(* get_status_string) (struct im_connection *ic, int stat);
    168        
    169167        GList *(* away_states)(struct im_connection *ic);
    170168       
     
    201199G_MODULE_EXPORT void serv_got_chat_left( struct groupchat *c );
    202200struct groupchat *chat_by_channel( char *channel );
    203 struct groupchat *chat_by_id( int id );
    204201
    205202/* Buddy management */
     
    209206
    210207/* Buddy activity */
    211 G_MODULE_EXPORT void serv_got_update( struct im_connection *ic, char *handle, int loggedin, int evil, time_t signon, time_t idle, int type, guint caps );
     208G_MODULE_EXPORT void imcb_buddy_status( struct im_connection *ic, const char *handle, int flags, const char *state, const char *message );
     209/* Not implemented yet! */ G_MODULE_EXPORT void imcb_buddy_times( struct im_connection *ic, const char *handle, time_t login, time_t idle );
    212210G_MODULE_EXPORT void serv_got_im( struct im_connection *ic, char *handle, char *msg, guint32 flags, time_t mtime, gint len );
    213211G_MODULE_EXPORT void serv_got_typing( struct im_connection *ic, char *handle, int timeout, int type );
Note: See TracChangeset for help on using the changeset viewer.