[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/src add_contact_window.c,1.5,1.6 add_contact_
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/src add_contact_window.c,1.5,1.6 add_contact_window.h,1.1.1.1,1.2 |
Date: |
Sat, 04 Jan 2003 16:24:28 -0500 |
Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv5005/src
Modified Files:
add_contact_window.c add_contact_window.h
Log Message:
* src/add_contact_window.[ch]
new get_all_accounts(int serviceid) function
* modules/msn2/msn.C
modules/msn2/msn_core.[Ch]
Everything ready to automatically re-add
existing contacts to FL and AL if necessary
- disabled for now but not for long
Index: add_contact_window.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/add_contact_window.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- add_contact_window.c 3 Jan 2003 23:26:07 -0000 1.5
+++ add_contact_window.c 4 Jan 2003 21:24:26 -0000 1.6
@@ -142,6 +142,43 @@
return newlist;
}
+GList * get_eb_accounts(gchar *contact)
+{
+ GList *node = NULL, *newlist = NULL;
+ struct contact * c;
+
+ c = find_contact_by_nick(contact);
+
+ if(c)
+ node = c->accounts;
+
+ while(node) {
+ newlist = g_list_append(newlist, ((eb_account *)node->data));
+ node = node->next;
+ }
+
+ return newlist;
+}
+
+GList * get_all_accounts(int serviceid)
+{
+ GList *node = get_all_contacts();
+ GList *newlist = NULL;
+
+ while(node) {
+ GList * g = get_eb_accounts(((struct
contact*)node->data)->nick);
+ while (g) {
+ eb_account *ac = (eb_account *)g->data;
+ if (ac->service_id == serviceid)
+ newlist = g_list_append(newlist, ac->handle);
+ g = g->next;
+ }
+ node = node->next;
+ }
+
+ return newlist;
+}
+
void dif_group(GtkEditable *editable, gpointer user_data)
{
GList * list = get_contacts(COMBO_TEXT(group_name));
Index: add_contact_window.h
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/add_contact_window.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- add_contact_window.h 23 Dec 2002 22:05:29 -0000 1.1.1.1
+++ add_contact_window.h 4 Jan 2003 21:24:26 -0000 1.2
@@ -30,5 +30,12 @@
void edit_account_window_new( eb_account * ea );
void add_unknown_account_window_new( eb_account * ea );
void edit_group_window_new( grouplist * g);
+#ifdef __cplusplus
+extern "C" {
+#endif
+GList * get_all_accounts(int service);
+#ifdef __cplusplus
+}
+#endif
GList * get_groups();
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/src add_contact_window.c,1.5,1.6 add_contact_window.h,1.1.1.1,1.2,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.9,1.10
- Next by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.33,1.34 config.h.in,1.2,1.3 configure.in,1.33,1.34
- Previous by thread:
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.9,1.10
- Next by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.33,1.34 config.h.in,1.2,1.3 configure.in,1.33,1.34
- Index(es):