changeset 19834:2fe6a673f12a

[gaim-migrate @ 17139] add the last time parse option to prepare for the gradually update procedure committed by MaYuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Sun, 03 Sep 2006 16:27:11 +0000
parents 54f287047d4e
children d99e36279d41
files src/protocols/msn/contact.c
diffstat 1 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/contact.c	Sun Sep 03 14:42:38 2006 +0000
+++ b/src/protocols/msn/contact.c	Sun Sep 03 16:27:11 2006 +0000
@@ -127,7 +127,9 @@
 	int list_op =0;
 	char * passport;
 	xmlnode * node,*body,*response,*result,*services,*service,*memberships;
+	xmlnode *LastChangeNode;
 	xmlnode *membershipnode,*members,*member,*passportNode;
+	char *lastchange;
 
 	session = contact->session;
 	gaim_debug_misc("xml","parse contact list:{%s}\nsize:%d\n",contact->soapconn->body,contact->soapconn->body_len);
@@ -149,6 +151,12 @@
 	gaim_debug_misc("xml","services{%p},name:%s\n",services,services->name);
 	service =xmlnode_get_child(services,"Service");
 	gaim_debug_misc("xml","service{%p},name:%s\n",service,service->name);
+	
+	/*Last Change Node*/
+	LastChangeNode = xmlnode_get_child(service,"LastChange");
+	lastchange = xmlnode_get_data(LastChangeNode);
+	gaim_debug_misc("MSNContact","LastChangeNode %s\n",lastchange);
+	
 	memberships =xmlnode_get_child(service,"Memberships");
 	gaim_debug_misc("xml","memberships{%p},name:%s\n",memberships,memberships->name);
 	for(membershipnode = xmlnode_get_child(memberships, "Membership"); membershipnode;
@@ -251,7 +259,8 @@
 	xmlnode * node,*body,*response,*result;
 	xmlnode *groups,*group,*groupname,*groupId,*groupInfo;
 	xmlnode	*contacts,*contactNode,*contactId,*contactInfo,*contactType,*passportName,*displayName,*groupIds,*guid;
-	xmlnode *ab;
+	xmlnode *abNode,*LastChangeNode;
+	char *lastchange;
 	char *group_name,*group_id;
 
 	session = contact->session;
@@ -426,7 +435,12 @@
 		}
 	}
 
-	ab =xmlnode_get_child(result,"ab");
+	abNode =xmlnode_get_child(result,"ab");
+	if(abNode != NULL){
+		LastChangeNode = xmlnode_get_child(abNode,"lastChange");
+		lastchange = xmlnode_get_data(LastChangeNode);
+		gaim_debug_info("MsnAB"," lastchange:{%s}\n",lastchange);
+	}
 
 	xmlnode_free(node);
 	msn_soap_free_read_buf(contact->soapconn);