evolution-data-server r8641 - trunk/servers/google/libgdata
- From: ebbyw svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r8641 - trunk/servers/google/libgdata
- Date: Wed, 16 Apr 2008 21:20:07 +0100 (BST)
Author: ebbyw
Date: Wed Apr 16 21:20:07 2008
New Revision: 8641
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8641&view=rev
Log:
2008-04-16 Ebby Wiselyn <ebbyw gnome org> ** Fixes Bug 523630
* gdata-feed.c: Added function to retrieve updated time of feed.
(gdata_feed_new_from_xml):
Modified:
trunk/servers/google/libgdata/gdata-feed.c
Modified: trunk/servers/google/libgdata/gdata-feed.c
==============================================================================
--- trunk/servers/google/libgdata/gdata-feed.c (original)
+++ trunk/servers/google/libgdata/gdata-feed.c Wed Apr 16 21:20:07 2008
@@ -240,6 +240,8 @@
g_slist_free(priv->categories);
}
+ g_free (priv->updated);
+
if (priv->field_table != NULL)
g_hash_table_destroy(priv->field_table);
@@ -572,6 +574,11 @@
else if (!xmlStrcmp(cur->name, (xmlChar *)"category")) {
priv->categories = g_slist_prepend(priv->categories, xmlnode_to_category(doc, cur));
}
+ else if (!xmlStrcmp(cur->name, (xmlChar *)"updated")) {
+ value = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
+ priv->updated = g_strdup ((gchar*)value);
+ xmlFree(value);
+ }
else if (!xmlStrcmp(cur->name, (xmlChar *)"entry")) {
priv->entries = g_slist_prepend(priv->entries, gdata_entry_new_from_xmlptr(doc,cur));
}
@@ -663,6 +670,17 @@
}
}
+gchar * gdata_feed_get_updated (GDataFeed *feed)
+{
+ GDataFeedPrivate *priv;
+ priv = GDATA_FEED_GET_PRIVATE (feed);
+
+ g_return_val_if_fail (feed !=NULL, NULL);
+ g_return_val_if_fail (GDATA_IS_FEED(feed), NULL);
+
+ return priv->updated;
+}
+
GSList *
gdata_feed_get_entries (GDataFeed *feed)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]