comparison src/core.h @ 4687:283fb289c510

[gaim-migrate @ 4998] This is a new buddy list. Lots of things about it just Don't Work. I probably already know about those things, and you'd just be wasting my time in submitting a bug report about it. I decided that instead of getting it to all work perfectly before committing, that I'd get it in cvs, and slowly fix it with regular commits. That way, it's easier to keep track of things, and other developers can help. Plus, I'm getting pissed off at the buddy list and want it to die. It's kinda boring, and doing nothing but the buddy list for such a long time has just gotten me very bitter. After 0.60 is released later this week, Gaim will resume being fun. This week is going to be very stressful, though, I'm sure. Things you ought to know about this buddy list: - It crashes - It leaks - There's no way to edit the buddy list, or access offline buddies - Most of the menus and buttons and whatnot just plain ol' don't work. - Status icons are only implemented for AIM. That's mostly just because I'm lazy. As such, you may want to be wary of updating this. If you do decide to update this, you may want to learn "cvs update -D yesterday" as well :) All the art there is just placeholder art. You probably won't really have as many problems as it sounds like you will from reading this. This message is extra-negative to stress that I don't want to be bothered with complaints about something not working about it :). I'll repeat: If something doesn't work, I probably already know about it. If you want to actually help with something, I'd be delighted to have it. IM me. -s. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 10 Mar 2003 05:30:31 +0000
parents d19872836812
children c15e0699acae
comparison
equal deleted inserted replaced
4686:a1de8a9c99ba 4687:283fb289c510
48 48
49 49
50 #include "multi.h" 50 #include "multi.h"
51 #include "conversation.h" 51 #include "conversation.h"
52 #include "ft.h" 52 #include "ft.h"
53 #include "privacy.h"
53 54
54 /* Really user states are controlled by the PRPLs now. We just use this for event_away */ 55 /* Really user states are controlled by the PRPLs now. We just use this for event_away */
55 #define UC_UNAVAILABLE 1 56 #define UC_UNAVAILABLE 1
56 57
57 /* This is far too long to be practical, but MSN users are probably used to long aliases */ 58 /* This is far too long to be practical, but MSN users are probably used to long aliases */
155 void *function; 156 void *function;
156 void *data; 157 void *data;
157 }; 158 };
158 #endif 159 #endif
159 160
160 #define BUDDY_ALIAS_MAXLEN 388 /* because MSN names can be 387 characters */
161
162 struct buddy {
163 int edittype; /* XXX CUI: this is really a GUI function and we need to put this in ui.h */
164 char name[80];
165 char alias[BUDDY_ALIAS_MAXLEN];
166 char server_alias[BUDDY_ALIAS_MAXLEN];
167 int present;
168 int evil;
169 time_t signon;
170 time_t idle;
171 int uc;
172 guint caps; /* woohoo! */
173 void *proto_data; /* what a hack */
174 struct gaim_account *account; /* the connection it belongs to */
175 GHashTable *settings;
176 };
177
178 struct group {
179 int edittype; /* XXX CUI: this is really a GUI function and we need to put this in ui.h */
180 char name[80];
181 GSList *members;
182 };
183
184 /* Globals in core.c */ 161 /* Globals in core.c */
185 extern GSList *uis; 162 extern GSList *uis;
186 extern GSList *groups; 163 extern GSList *groups;
187 extern int gaim_session; 164 extern int gaim_session;
188 165
189 /* Globals in plugins.c */ 166 /* Globals in plugins.c */
190 extern GList *plugins; 167 extern GList *plugins;
191 extern GList *probed_plugins; 168 extern GList *probed_plugins;
192 extern GList *callbacks; 169 extern GList *callbacks;
193
194 /* Functions in buddy.c */
195 extern struct buddy *find_buddy(struct gaim_account *, const char *);
196 extern struct group *find_group(const char *);
197 extern struct group *find_group_by_buddy(struct buddy *);
198 extern struct buddy *add_buddy(struct gaim_account *, const char *, const char *, const char *);
199 extern void remove_buddy(struct buddy *);
200 extern struct group *add_group(const char *);
201 extern void remove_group(struct group *);
202 extern void toc_build_config(struct gaim_account *, char *, int len, gboolean);
203 extern void parse_toc_buddy_list(struct gaim_account *, char *);
204 extern void signoff_blocked(struct gaim_connection *);
205 extern char* get_buddy_alias_only(struct buddy *);
206 extern char* get_buddy_alias(struct buddy *);
207 extern GSList *gaim_group_get_accounts(struct group *);
208 extern gboolean gaim_group_on_account(struct group *, struct gaim_account *);
209 extern void do_import(struct gaim_account *, const char *);
210 extern void gaim_blist_load();
211 extern void gaim_blist_save();
212 extern gboolean gaim_privacy_permit_add(struct gaim_account *, const char *);
213 extern gboolean gaim_privacy_permit_remove(struct gaim_account *, const char *);
214 extern gboolean gaim_privacy_deny_add(struct gaim_account *, const char *);
215 extern gboolean gaim_privacy_deny_remove(struct gaim_account *, const char *);
216 extern void gaim_buddy_set_setting(struct buddy *, const char *, const char *);
217 extern char *gaim_buddy_get_setting(struct buddy *, const char *);
218
219 170
220 /* Functions in core.c */ 171 /* Functions in core.c */
221 extern gint UI_write(struct UI *, guchar *, int); 172 extern gint UI_write(struct UI *, guchar *, int);
222 extern void UI_build_write(struct UI *, guchar, guchar, ...); 173 extern void UI_build_write(struct UI *, guchar, guchar, ...);
223 extern void UI_broadcast(guchar *data, int); 174 extern void UI_broadcast(guchar *data, int);