summaryrefslogtreecommitdiff
path: root/gdata/gdata-private.h
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2009-06-28 22:23:55 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2009-06-28 22:23:55 +0100
commit920c0249bd241320abcd15cf3379b66d6c83e2f5 (patch)
treeed07200334498483a010d32c216573f00248ecbf /gdata/gdata-private.h
parentdad5356795c230886e11d8a63fbd4fc27596b2f4 (diff)
downloadlibgdata-920c0249bd241320abcd15cf3379b66d6c83e2f5.tar.gz
[core] Link element names and namespaces to the relevant classes
This introduces new element_name and element_namespaces fields to the GDataParsableClass struct, allowing for simpler parsing of XML by linking XML element names to parsable object types. Some of the GDataParsable API is now public, which will allow for a more comprehensive test suite in future.
Diffstat (limited to 'gdata/gdata-private.h')
-rw-r--r--gdata/gdata-private.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdata/gdata-private.h b/gdata/gdata-private.h
index 80faa5c5..d2ad4137 100644
--- a/gdata/gdata-private.h
+++ b/gdata/gdata-private.h
@@ -37,19 +37,16 @@ void _gdata_query_set_next_uri (GDataQuery *self, const gchar *next_uri);
void _gdata_query_set_previous_uri (GDataQuery *self, const gchar *previous_uri);
#include "gdata-parsable.h"
-GDataParsable *_gdata_parsable_new_from_xml (GType parsable_type, const gchar *first_element, const gchar *xml, gint length, gpointer user_data,
+GDataParsable *_gdata_parsable_new_from_xml (GType parsable_type, const gchar *xml, gint length, gpointer user_data,
GError **error) G_GNUC_WARN_UNUSED_RESULT;
-GDataParsable *_gdata_parsable_new_from_xml_node (GType parsable_type, const gchar *first_element, xmlDoc *doc, xmlNode *node, gpointer user_data,
+GDataParsable *_gdata_parsable_new_from_xml_node (GType parsable_type, xmlDoc *doc, xmlNode *node, gpointer user_data,
GError **error) G_GNUC_WARN_UNUSED_RESULT;
-gchar *_gdata_parsable_get_xml (GDataParsable *self, const gchar *first_element, gboolean at_top_level) G_GNUC_WARN_UNUSED_RESULT;
+gchar *_gdata_parsable_get_xml (GDataParsable *self, gboolean declare_namespaces) G_GNUC_WARN_UNUSED_RESULT;
#include "gdata-feed.h"
GDataFeed *_gdata_feed_new_from_xml (GType feed_type, const gchar *xml, gint length, GType entry_type,
GDataQueryProgressCallback progress_callback, gpointer progress_user_data, GError **error) G_GNUC_WARN_UNUSED_RESULT;
-#include "gdata-entry.h"
-GDataEntry *_gdata_entry_new_from_xml (GType entry_type, const gchar *xml, gint length, GError **error) G_GNUC_WARN_UNUSED_RESULT;
-
#include "gdata-parser.h"
G_END_DECLS