Changeset 192b80a for protocols/nogaim.h


Ignore:
Timestamp:
2006-03-31T07:12:27Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
755ae5b
Parents:
a014331
Message:

Removed some unused stuff from nogaim.h, preparing to fix some API issues there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    ra014331 r192b80a  
    6969
    7070/* ok. now the fun begins. first we create a connection structure */
    71 struct gaim_connection {
    72         /* we need to do either oscar or TOC */
    73         /* we make this as an int in case if we want to add more protocols later */
     71struct gaim_connection
     72{
    7473        struct prpl *prpl;
    7574        guint32 flags;
    7675       
     76        /* each connection then can have its own protocol-specific data */
     77        void *proto_data;
     78       
    7779        /* all connections need an input watcher */
    7880        int inpa;
     81        guint keepalive;
    7982       
    8083        /* buddy list stuff. there is still a global groups for the buddy list, but
     
    8487        int permdeny;
    8588       
    86         /* all connections need a list of chats, even if they don't have chat */
    87         GSList *buddy_chats;
    88        
    89         /* each connection then can have its own protocol-specific data */
    90         void *proto_data;
    91        
    9289        struct aim_user *user;
    9390       
     
    9592        char displayname[128];
    9693        char password[32];
    97         guint keepalive;
    98         /* stuff needed for per-connection idle times */
    99         guint idle_timer;
    100         time_t login_time;
    101         time_t lastsent;
    102         int is_idle;
    10394       
    10495        char *away;
    105         int is_auto_away;
    10696       
    10797        int evil;
     
    110100        /* BitlBee */
    111101        irc_t *irc;
    112         int lstitems;  /* added for msnP8 */
    113102       
    114103        struct conversation *conversations;
     
    164153        const char *name;
    165154
    166         /* for ICQ and Yahoo, who have off/on per-conversation options */
    167         /* char *checkbox; this should be per-connection */
    168 
    169         GList *(* away_states)(struct gaim_connection *gc);
    170         GList *(* actions)();
    171         void   (* do_action)(struct gaim_connection *, char *);
    172         /* user_opts returns a GList* of g_malloc'd struct proto_user_opts */
    173         GList *(* user_opts)();
    174         GList *(* chat_info)(struct gaim_connection *);
    175 
    176         /* all the server-related functions */
    177 
    178         /* a lot of these (like get_dir) are protocol-dependent and should be removed. ones like
    179          * set_dir (which is also protocol-dependent) can stay though because there's a dialog
    180          * (i.e. the prpl says you can set your dir info, the ui shows a dialog and needs to call
    181          * set_dir in order to set it) */
    182 
    183155        void (* login)          (struct aim_user *);
     156        void (* keepalive)      (struct gaim_connection *);
    184157        void (* close)          (struct gaim_connection *);
     158       
    185159        int  (* send_im)        (struct gaim_connection *, char *who, char *message, int len, int away);
    186         int  (* send_typing)    (struct gaim_connection *, char *who, int typing);
    187         void (* set_info)       (struct gaim_connection *, char *info);
    188         void (* get_info)       (struct gaim_connection *, char *who);
    189160        void (* set_away)       (struct gaim_connection *, char *state, char *message);
    190161        void (* get_away)       (struct gaim_connection *, char *who);
    191         void (* set_idle)       (struct gaim_connection *, int idletime);
     162        int  (* send_typing)    (struct gaim_connection *, char *who, int typing);
     163       
    192164        void (* add_buddy)      (struct gaim_connection *, char *name);
     165        void (* group_buddy)    (struct gaim_connection *, char *who, char *old_group, char *new_group);
    193166        void (* remove_buddy)   (struct gaim_connection *, char *name, char *group);
    194167        void (* add_permit)     (struct gaim_connection *, char *name);
     
    197170        void (* rem_deny)       (struct gaim_connection *, char *name);
    198171        void (* set_permit_deny)(struct gaim_connection *);
     172       
     173        void (* set_info)       (struct gaim_connection *, char *info);
     174        void (* get_info)       (struct gaim_connection *, char *who);
     175        void (* alias_buddy)    (struct gaim_connection *, char *who);  /* save/store buddy's alias on server list/roster */
     176       
     177        /* Group chat stuff. */
    199178        void (* join_chat)      (struct gaim_connection *, GList *data);
    200179        void (* chat_invite)    (struct gaim_connection *, int id, char *who, char *message);
    201180        void (* chat_leave)     (struct gaim_connection *, int id);
    202         void (* chat_whisper)   (struct gaim_connection *, int id, char *who, char *message);
    203181        int  (* chat_send)      (struct gaim_connection *, int id, char *message);
    204182        int  (* chat_open)      (struct gaim_connection *, char *who);
    205         void (* keepalive)      (struct gaim_connection *);
    206 
    207         /* get "chat buddy" info and away message */
    208         void (* get_cb_info)    (struct gaim_connection *, int, char *who);
    209         void (* get_cb_away)    (struct gaim_connection *, int, char *who);
    210 
    211         /* save/store buddy's alias on server list/roster */
    212         void (* alias_buddy)    (struct gaim_connection *, char *who);
    213 
    214         /* change a buddy's group on a server list/roster */
    215         void (* group_buddy)    (struct gaim_connection *, char *who, char *old_group, char *new_group);
    216 
    217         void (* buddy_free)     (struct buddy *);
    218 
     183       
     184        /* DIE! */
    219185        char *(* get_status_string) (struct gaim_connection *gc, int stat);
    220 
     186       
     187        GList *(* away_states)(struct gaim_connection *gc);
     188       
     189        /* Mainly for AOL, since they think "Bung hole" == "Bu ngho le". *sigh* */
    221190        int (* cmp_buddynames) (const char *who1, const char *who2);
    222191};
     
    307276struct conversation *conv_findchannel( char *channel );
    308277
    309 
    310278#endif
Note: See TracChangeset for help on using the changeset viewer.