Changeset 0a3c243 for protocols/nogaim.h


Ignore:
Timestamp:
2006-06-30T23:18:56Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5100caa
Parents:
5c9512f
Message:

Got rid of struct aim_user (now using account_t everywhere). Needs some more
testing though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    r5c9512f r0a3c243  
    3939
    4040#include "bitlbee.h"
     41#include "account.h"
    4142#include "proxy.h"
    4243#include "md5.h"
     
    6364struct gaim_connection
    6465{
    65         struct prpl *prpl;
     66        account_t *acc;
    6667        guint32 flags;
    6768       
     
    7879        GSList *deny;
    7980        int permdeny;
    80        
    81         struct aim_user *user;
    8281       
    8382        char username[64];
     
    126125};
    127126
    128 struct aim_user {
    129         char username[64];
    130         char alias[SELF_ALIAS_LEN];
    131         char password[32];
    132         char user_info[2048];
    133         int options;
    134         struct prpl *prpl;
    135         /* prpls can use this to save information about the user,
    136          * like which server to connect to, etc */
    137         char proto_opt[7][256];
    138 
    139         struct gaim_connection *gc;
    140         irc_t *irc;
    141 };
    142 
    143127struct prpl {
    144128        int options;
    145129        const char *name;
    146130
    147         void (* login)          (struct aim_user *);
     131        void (* login)          (account_t *);
    148132        void (* keepalive)      (struct gaim_connection *);
    149133        void (* close)          (struct gaim_connection *);
     
    212196
    213197/* multi.c */
    214 G_MODULE_EXPORT struct gaim_connection *new_gaim_conn( struct aim_user *user );
     198G_MODULE_EXPORT struct gaim_connection *new_gaim_conn( account_t *acc );
    215199G_MODULE_EXPORT void destroy_gaim_conn( struct gaim_connection *gc );
    216200G_MODULE_EXPORT void set_login_progress( struct gaim_connection *gc, int step, char *msg );
Note: See TracChangeset for help on using the changeset viewer.