diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2009-02-20 00:08:33 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2009-02-20 00:08:33 +0000 |
commit | e18cc8aa1376ab406f7a65d2885160056902a828 (patch) | |
tree | 8eb1ff7a970c7c4b3cf0f00b6918f52badb65a8c /gdata/gdata-entry.c | |
parent | a88f19fda5f31941ae43961e012fc927d214d3be (diff) | |
download | libgdata-e18cc8aa1376ab406f7a65d2885160056902a828.tar.gz |
[project @ philip@tecnocode.co.uk-20090220000833-9goap90j2b3xbtc0]
Completed functionality to upload videos to YouTube. There are a few elements in the response which are still unparsed, but the tests in the suite
work.
Diffstat (limited to 'gdata/gdata-entry.c')
-rw-r--r-- | gdata/gdata-entry.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdata/gdata-entry.c b/gdata/gdata-entry.c index 8f489f54..e6a00785 100644 --- a/gdata/gdata-entry.c +++ b/gdata/gdata-entry.c @@ -618,14 +618,21 @@ gdata_entry_get_xml (GDataEntry *self) { GDataEntryClass *klass; GString *xml_string; + const gchar *namespaces; klass = GDATA_ENTRY_GET_CLASS (self); if (klass->get_xml == NULL) return NULL; + /* Get the namespaces the class uses */ + if (klass->get_namespaces == NULL) + namespaces = ""; + else + namespaces = klass->get_namespaces (self); + /* Allocate enough space for 300 characters, which is a decent average entry length */ xml_string = g_string_sized_new (300); - g_string_append (xml_string, "<entry xmlns='http://www.w3.org/2005/Atom'>"); + g_string_append_printf (xml_string, "<entry xmlns='http://www.w3.org/2005/Atom' %s>", klass->get_namespaces (self)); klass->get_xml (self, xml_string); g_string_append (xml_string, "</entry>"); |