comparison src/core.h @ 4349:0c68d402f59f

[gaim-migrate @ 4614] XML Blist Gaim stores all the buddy lists in one big happy file now. You can order the buddies however you want, and they'll stay ordered that way. We can also store some per-buddy information now, which will be cool. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 19 Jan 2003 22:16:52 +0000
parents cddb50734169
children 5fb47ec9bfe4
comparison
equal deleted inserted replaced
4348:922b66840a51 4349:0c68d402f59f
64 /* buddy icon file */ 64 /* buddy icon file */
65 char iconfile[256]; 65 char iconfile[256];
66 66
67 struct gaim_connection *gc; 67 struct gaim_connection *gc;
68 gboolean connecting; 68 gboolean connecting;
69 }; 69
70 70 GSList *permit;
71 GSList *deny;
72 int permdeny;
73 };
74
71 enum gaim_event { 75 enum gaim_event {
72 event_signon = 0, 76 event_signon = 0,
73 event_signoff, 77 event_signoff,
74 event_away, 78 event_away,
75 event_back, 79 event_back,
156 time_t signon; 160 time_t signon;
157 time_t idle; 161 time_t idle;
158 int uc; 162 int uc;
159 guint caps; /* woohoo! */ 163 guint caps; /* woohoo! */
160 void *proto_data; /* what a hack */ 164 void *proto_data; /* what a hack */
161 struct gaim_connection *gc; /* the connection it belongs to */ 165 struct aim_user *user; /* the connection it belongs to */
166 GHashTable *settings;
162 }; 167 };
163 168
164 struct group { 169 struct group {
165 int edittype; /* XXX CUI: this is really a GUI function and we need to put this in ui.h */ 170 int edittype; /* XXX CUI: this is really a GUI function and we need to put this in ui.h */
166 char name[80]; 171 char name[80];
167 GSList *members; 172 GSList *members;
168 struct gaim_connection *gc; /* the connection it belongs to */
169 }; 173 };
170 174
171 /* Globals in core.c */ 175 /* Globals in core.c */
172 extern GSList *uis; 176 extern GSList *uis;
177 extern GSList *groups;
173 extern int gaim_session; 178 extern int gaim_session;
174 179
175 /* Globals in plugins.c */ 180 /* Globals in plugins.c */
176 extern GList *plugins; 181 extern GList *plugins;
177 extern GList *probed_plugins; 182 extern GList *probed_plugins;
178 extern GList *callbacks; 183 extern GList *callbacks;
179 184
180 /* Functions in buddy.c */ 185 /* Functions in buddy.c */
181 extern struct buddy *find_buddy(struct gaim_connection *, const char *); 186 extern struct buddy *find_buddy(struct aim_user *, const char *);
182 extern struct group *find_group(struct gaim_connection *, const char *); 187 extern struct group *find_group(const char *);
183 extern struct group *find_group_by_buddy(struct gaim_connection *, const char *); 188 extern struct group *find_group_by_buddy(struct buddy *);
184 extern struct buddy *add_buddy(struct gaim_connection *, const char *, const char *, const char *); 189 extern struct buddy *add_buddy(struct aim_user *, const char *, const char *, const char *);
185 extern void remove_buddy(struct gaim_connection *, struct group *, struct buddy *); 190 extern void remove_buddy(struct buddy *);
186 extern struct group *add_group(struct gaim_connection *, const char *); 191 extern struct group *add_group(const char *);
187 extern void remove_group(struct gaim_connection *, struct group *); 192 extern void remove_group(struct group *);
188 extern void do_export(struct gaim_connection *); 193 extern void toc_build_config(struct aim_user *, char *, int len, gboolean);
189 extern void do_import(struct gaim_connection *, const char *); 194 extern void parse_toc_buddy_list(struct aim_user *, char *);
190 extern int bud_list_cache_exists(struct gaim_connection *);
191 extern void toc_build_config(struct gaim_connection *, char *, int len, gboolean);
192 extern void parse_toc_buddy_list(struct gaim_connection *, char *);
193 extern void signoff_blocked(struct gaim_connection *); 195 extern void signoff_blocked(struct gaim_connection *);
194 extern char* get_buddy_alias_only(struct buddy *); 196 extern char* get_buddy_alias_only(struct buddy *);
195 extern char* get_buddy_alias(struct buddy *); 197 extern char* get_buddy_alias(struct buddy *);
198 extern GSList *gaim_group_get_accounts(struct group *);
199 extern gboolean gaim_group_on_account(struct group *, struct aim_user *);
200 extern void do_import(struct aim_user *, const char *);
201 extern void gaim_blist_load();
202 extern void gaim_blist_save();
203 extern gboolean gaim_privacy_permit_add(struct aim_user *, const char *);
204 extern gboolean gaim_privacy_permit_remove(struct aim_user *, const char *);
205 extern gboolean gaim_privacy_deny_add(struct aim_user *, const char *);
206 extern gboolean gaim_privacy_deny_remove(struct aim_user *, const char *);
207 extern void gaim_buddy_set_setting(struct buddy *, const char *, const char *);
208 extern char *gaim_buddy_get_setting(struct buddy *, const char *);
209
196 210
197 /* Functions in core.c */ 211 /* Functions in core.c */
198 extern gint UI_write(struct UI *, guchar *, int); 212 extern gint UI_write(struct UI *, guchar *, int);
199 extern void UI_build_write(struct UI *, guchar, guchar, ...); 213 extern void UI_build_write(struct UI *, guchar, guchar, ...);
200 extern void UI_broadcast(guchar *data, int); 214 extern void UI_broadcast(guchar *data, int);