Mercurial > pidgin
comparison src/core.h @ 4491:3196d9044a45
[gaim-migrate @ 4766]
aim_user is dead. long live gaim_account.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 31 Jan 2003 13:03:47 +0000 |
parents | 5fb47ec9bfe4 |
children | 7521e29658bc |
comparison
equal
deleted
inserted
replaced
4490:70b892694e0b | 4491:3196d9044a45 |
---|---|
40 #include <glib.h> | 40 #include <glib.h> |
41 #ifdef GAIM_PLUGINS | 41 #ifdef GAIM_PLUGINS |
42 #include <gmodule.h> | 42 #include <gmodule.h> |
43 #endif | 43 #endif |
44 | 44 |
45 struct aim_user; | 45 struct gaim_account; |
46 struct group; | 46 struct group; |
47 struct buddy; | 47 struct buddy; |
48 | 48 |
49 | 49 |
50 #include "multi.h" | 50 #include "multi.h" |
54 #define UC_UNAVAILABLE 1 | 54 #define UC_UNAVAILABLE 1 |
55 | 55 |
56 /* This is far too long to be practical, but MSN users are probably used to long aliases */ | 56 /* This is far too long to be practical, but MSN users are probably used to long aliases */ |
57 #define SELF_ALIAS_LEN 400 | 57 #define SELF_ALIAS_LEN 400 |
58 | 58 |
59 struct aim_user { | 59 struct gaim_account { |
60 char username[64]; | 60 char username[64]; |
61 char alias[SELF_ALIAS_LEN]; | 61 char alias[SELF_ALIAS_LEN]; |
62 char password[32]; | 62 char password[32]; |
63 char user_info[2048]; | 63 char user_info[2048]; |
64 int options; | 64 int options; |
166 time_t signon; | 166 time_t signon; |
167 time_t idle; | 167 time_t idle; |
168 int uc; | 168 int uc; |
169 guint caps; /* woohoo! */ | 169 guint caps; /* woohoo! */ |
170 void *proto_data; /* what a hack */ | 170 void *proto_data; /* what a hack */ |
171 struct aim_user *user; /* the connection it belongs to */ | 171 struct gaim_account *account; /* the connection it belongs to */ |
172 GHashTable *settings; | 172 GHashTable *settings; |
173 }; | 173 }; |
174 | 174 |
175 struct group { | 175 struct group { |
176 int edittype; /* XXX CUI: this is really a GUI function and we need to put this in ui.h */ | 176 int edittype; /* XXX CUI: this is really a GUI function and we need to put this in ui.h */ |
187 extern GList *plugins; | 187 extern GList *plugins; |
188 extern GList *probed_plugins; | 188 extern GList *probed_plugins; |
189 extern GList *callbacks; | 189 extern GList *callbacks; |
190 | 190 |
191 /* Functions in buddy.c */ | 191 /* Functions in buddy.c */ |
192 extern struct buddy *find_buddy(struct aim_user *, const char *); | 192 extern struct buddy *find_buddy(struct gaim_account *, const char *); |
193 extern struct group *find_group(const char *); | 193 extern struct group *find_group(const char *); |
194 extern struct group *find_group_by_buddy(struct buddy *); | 194 extern struct group *find_group_by_buddy(struct buddy *); |
195 extern struct buddy *add_buddy(struct aim_user *, const char *, const char *, const char *); | 195 extern struct buddy *add_buddy(struct gaim_account *, const char *, const char *, const char *); |
196 extern void remove_buddy(struct buddy *); | 196 extern void remove_buddy(struct buddy *); |
197 extern struct group *add_group(const char *); | 197 extern struct group *add_group(const char *); |
198 extern void remove_group(struct group *); | 198 extern void remove_group(struct group *); |
199 extern void toc_build_config(struct aim_user *, char *, int len, gboolean); | 199 extern void toc_build_config(struct gaim_account *, char *, int len, gboolean); |
200 extern void parse_toc_buddy_list(struct aim_user *, char *); | 200 extern void parse_toc_buddy_list(struct gaim_account *, char *); |
201 extern void signoff_blocked(struct gaim_connection *); | 201 extern void signoff_blocked(struct gaim_connection *); |
202 extern char* get_buddy_alias_only(struct buddy *); | 202 extern char* get_buddy_alias_only(struct buddy *); |
203 extern char* get_buddy_alias(struct buddy *); | 203 extern char* get_buddy_alias(struct buddy *); |
204 extern GSList *gaim_group_get_accounts(struct group *); | 204 extern GSList *gaim_group_get_accounts(struct group *); |
205 extern gboolean gaim_group_on_account(struct group *, struct aim_user *); | 205 extern gboolean gaim_group_on_account(struct group *, struct gaim_account *); |
206 extern void do_import(struct aim_user *, const char *); | 206 extern void do_import(struct gaim_account *, const char *); |
207 extern void gaim_blist_load(); | 207 extern void gaim_blist_load(); |
208 extern void gaim_blist_save(); | 208 extern void gaim_blist_save(); |
209 extern gboolean gaim_privacy_permit_add(struct aim_user *, const char *); | 209 extern gboolean gaim_privacy_permit_add(struct gaim_account *, const char *); |
210 extern gboolean gaim_privacy_permit_remove(struct aim_user *, const char *); | 210 extern gboolean gaim_privacy_permit_remove(struct gaim_account *, const char *); |
211 extern gboolean gaim_privacy_deny_add(struct aim_user *, const char *); | 211 extern gboolean gaim_privacy_deny_add(struct gaim_account *, const char *); |
212 extern gboolean gaim_privacy_deny_remove(struct aim_user *, const char *); | 212 extern gboolean gaim_privacy_deny_remove(struct gaim_account *, const char *); |
213 extern void gaim_buddy_set_setting(struct buddy *, const char *, const char *); | 213 extern void gaim_buddy_set_setting(struct buddy *, const char *, const char *); |
214 extern char *gaim_buddy_get_setting(struct buddy *, const char *); | 214 extern char *gaim_buddy_get_setting(struct buddy *, const char *); |
215 | 215 |
216 | 216 |
217 /* Functions in core.c */ | 217 /* Functions in core.c */ |