diff 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
line wrap: on
line diff
--- a/src/core.h	Sun Jan 19 22:03:57 2003 +0000
+++ b/src/core.h	Sun Jan 19 22:16:52 2003 +0000
@@ -66,8 +66,12 @@
 
 	struct gaim_connection *gc;
 	gboolean connecting;
+
+	GSList *permit;
+	GSList *deny;
+	int permdeny;
 };
-	
+
 enum gaim_event {
 	event_signon = 0,
 	event_signoff,
@@ -158,18 +162,19 @@
         int uc;
 	guint caps; /* woohoo! */
 	void *proto_data; /* what a hack */
-	struct gaim_connection *gc; /* the connection it belongs to */
+	struct aim_user *user; /* the connection it belongs to */
+	GHashTable *settings;
 };
 
 struct group {
 	int edittype; /* XXX CUI: this is really a GUI function and we need to put this in ui.h */
 	char name[80];
 	GSList *members;
-	struct gaim_connection *gc; /* the connection it belongs to */
 };
 
 /* Globals in core.c */
 extern GSList *uis;
+extern GSList *groups;
 extern int gaim_session;
 
 /* Globals in plugins.c */
@@ -178,21 +183,30 @@
 extern GList *callbacks;
 
 /* Functions in buddy.c */
-extern struct buddy *find_buddy(struct gaim_connection *, const char *);
-extern struct group *find_group(struct gaim_connection *, const char *);
-extern struct group *find_group_by_buddy(struct gaim_connection *, const char *);
-extern struct buddy *add_buddy(struct gaim_connection *, const char *, const char *, const char *);
-extern void remove_buddy(struct gaim_connection *, struct group *, struct buddy *);
-extern struct group *add_group(struct gaim_connection *, const char *);
-extern void remove_group(struct gaim_connection *, struct group *);
-extern void do_export(struct gaim_connection *);
-extern void do_import(struct gaim_connection *, const char *);
-extern int bud_list_cache_exists(struct gaim_connection *);
-extern void toc_build_config(struct gaim_connection *, char *, int len, gboolean);
-extern void parse_toc_buddy_list(struct gaim_connection *, char *);
+extern struct buddy *find_buddy(struct aim_user *, const char *);
+extern struct group *find_group(const char *);
+extern struct group *find_group_by_buddy(struct buddy *);
+extern struct buddy *add_buddy(struct aim_user *, const char *, const char *, const char *);
+extern void remove_buddy(struct buddy *);
+extern struct group *add_group(const char *);
+extern void remove_group(struct group *);
+extern void toc_build_config(struct aim_user *, char *, int len, gboolean);
+extern void parse_toc_buddy_list(struct aim_user *, char *);
 extern void signoff_blocked(struct gaim_connection *);
 extern char* get_buddy_alias_only(struct buddy *);
 extern char* get_buddy_alias(struct buddy *);
+extern GSList *gaim_group_get_accounts(struct group *);
+extern gboolean gaim_group_on_account(struct group *, struct aim_user *);
+extern void do_import(struct aim_user *, const char *);
+extern void gaim_blist_load();
+extern void gaim_blist_save();
+extern gboolean gaim_privacy_permit_add(struct aim_user *, const char *);
+extern gboolean gaim_privacy_permit_remove(struct aim_user *, const char *);
+extern gboolean gaim_privacy_deny_add(struct aim_user *, const char *);
+extern gboolean gaim_privacy_deny_remove(struct aim_user *, const char *);
+extern void gaim_buddy_set_setting(struct buddy *, const char *, const char *);
+extern char *gaim_buddy_get_setting(struct buddy *, const char *);
+
 
 /* Functions in core.c */
 extern gint UI_write(struct UI *, guchar *, int);