[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.13,1.14 msn
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.13,1.14 msn_core.h,1.4,1.5 msn_interface.C,1.3,1.4 msn_interface.h,1.3,1.4 |
Date: |
Wed, 15 Jan 2003 08:12:24 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/msn2/libmsn2
In directory subversions:/tmp/cvs-serv30792/modules/msn2/libmsn2
Modified Files:
msn_core.C msn_core.h msn_interface.C msn_interface.h
Log Message:
Update client-side friend's groups
when accounts do not exist
Index: msn_core.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/libmsn2/msn_core.C,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- msn_core.C 15 Jan 2003 11:55:50 -0000 1.13
+++ msn_core.C 15 Jan 2003 13:12:21 -0000 1.14
@@ -243,7 +243,7 @@
void msn_sync_lists(msnconn * conn, int version)
{
syncinfo *info=new syncinfo;
-
+ ext_syncing_lists(1);
info->serial=version;
sprintf(buf, "SYN %d %d\r\n", next_trid, version);
@@ -277,6 +277,7 @@
/* delete info;
info=NULL;*/
msn_del_callback(conn, trid);
+ ext_syncing_lists(0);
ext_got_info(conn, NULL);
return;
} else {
@@ -296,6 +297,8 @@
userdata * newuser=new userdata();
newuser->username=msn_permstring(args[6]);
newuser->friendlyname=msn_decode_URL(msn_permstring(args[6]));
+ newuser->groups=msn_permstring(args[8]);
+ ext_got_friend(newuser->username, newuser->groups);
msn_add_to_llist(info->fl, newuser);
if(atoi(args[4])==atoi(args[5]))
{ info->complete|=LST_FL; }
@@ -367,6 +370,7 @@
{
msn_del_callback(conn, trid);
msn_check_rl(conn, info);
+ ext_syncing_lists(0);
ext_got_info(conn, info);
/* delete info; */
}
Index: msn_core.h
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/libmsn2/msn_core.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- msn_core.h 15 Jan 2003 11:55:50 -0000 1.4
+++ msn_core.h 15 Jan 2003 13:12:21 -0000 1.5
@@ -55,8 +55,9 @@
public:
char * username;
char * friendlyname;
+ char * groups;
userdata() { username=friendlyname=NULL; }
- ~userdata() { if(username!=NULL) { delete username; } if(friendlyname!=NULL)
{ delete friendlyname; } }
+ ~userdata() { if(username!=NULL) { delete username; } if(friendlyname!=NULL)
{ delete friendlyname; } if(groups!=NULL) { delete groups; } }
};
class authdata
Index: msn_interface.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/libmsn2/msn_interface.C,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- msn_interface.C 15 Jan 2003 11:55:50 -0000 1.3
+++ msn_interface.C 15 Jan 2003 13:12:21 -0000 1.4
@@ -407,3 +407,10 @@
{
printf("got group id %s, %s\n",id,name);
}
+void ext_got_friend(char *name, char *groups)
+{
+ printf("got friend %s, %s\n",name,groups);
+}
+void ext_syncing_lists(int state)
+{
+}
Index: msn_interface.h
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/libmsn2/msn_interface.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- msn_interface.h 15 Jan 2003 11:55:50 -0000 1.3
+++ msn_interface.h 15 Jan 2003 13:12:21 -0000 1.4
@@ -87,3 +87,5 @@
void ext_disable_conncheck(void);
void ext_got_group(char *id, char *name);
+void ext_got_friend(char *name, char *groups);
+void ext_syncing_lists(int state);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.13,1.14 msn_core.h,1.4,1.5 msn_interface.C,1.3,1.4 msn_interface.h,1.3,1.4,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.29,1.30
- Next by Date:
[Ayttm-commits] CVS: ayttm/src edit_contact_window.c,1.4,1.5 util.c,1.9,1.10 util.h,1.3,1.4
- Previous by thread:
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.29,1.30
- Next by thread:
[Ayttm-commits] CVS: ayttm/src edit_contact_window.c,1.4,1.5 util.c,1.9,1.10 util.h,1.3,1.4
- Index(es):