summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdata/gdata-entry.c18
-rw-r--r--gdata/gdata-private.h1
2 files changed, 19 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
diff --git a/gdata/gdata-private.h b/gdata/gdata-private.h
index 2e4e84f6..17a64c27 100644
--- a/gdata/gdata-private.h
+++ b/gdata/gdata-private.h
@@ -111,6 +111,7 @@ G_GNUC_INTERNAL void _gdata_feed_call_progress_callback (GDataFeed *self, gpoint
#include "gdata-batch-operation.h"
G_GNUC_INTERNAL void _gdata_entry_set_updated (GDataEntry *self, gint64 updated);
G_GNUC_INTERNAL void _gdata_entry_set_published (GDataEntry *self, gint64 published);
+G_GNUC_INTERNAL void _gdata_entry_set_id (GDataEntry *self, const gchar *id);
G_GNUC_INTERNAL void _gdata_entry_set_batch_data (GDataEntry *self, guint id, GDataBatchOperationType type);
#include "gdata-parser.h"