summaryrefslogtreecommitdiff
path: root/gdata/gdata-entry.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2015-04-16 00:47:14 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2015-04-16 00:48:06 +0100
commitb0d0c9dd7cecd2c43e559215b14a082999d5a917 (patch)
treeb714fe93cf4b3c227e13ba6b14d9d4865893cd6d /gdata/gdata-entry.c
parentc975b7b55a7c32f5d4146b1b799ad4c6456c7b17 (diff)
downloadlibgdata-b0d0c9dd7cecd2c43e559215b14a082999d5a917.tar.gz
core: Add internal helper API for setting GDataEntry:id
This will be used in the upcoming ports of various services to JSON. https://bugzilla.gnome.org/show_bug.cgi?id=687597
Diffstat (limited to 'gdata/gdata-entry.c')
-rw-r--r--gdata/gdata-entry.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gdata/gdata-entry.c b/gdata/gdata-entry.c
index 7c5c7dc2..74cae0e7 100644
--- a/gdata/gdata-entry.c
+++ b/gdata/gdata-entry.c
@@ -865,6 +865,24 @@ _gdata_entry_set_published (GDataEntry *self, gint64 published)
self->priv->published = published;
}
+/*
+ * _gdata_entry_set_id:
+ * @self: a #GDataEntry
+ * @id: (nullable): the new ID
+ *
+ * Sets the value of the #GDataEntry:id property to @id.
+ *
+ * Since: UNRELEASED
+ */
+void
+_gdata_entry_set_id (GDataEntry *self, const gchar *id)
+{
+ g_return_if_fail (GDATA_IS_ENTRY (self));
+
+ g_free (self->priv->id);
+ self->priv->id = g_strdup (id);
+}
+
/**
* gdata_entry_get_published:
* @self: a #GDataEntry