[libgdata] core: Add internal helper API for setting GDataEntry:published
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] core: Add internal helper API for setting GDataEntry:published
- Date: Wed, 15 Apr 2015 23:48:15 +0000 (UTC)
commit c975b7b55a7c32f5d4146b1b799ad4c6456c7b17
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Apr 16 00:46:32 2015 +0100
core: Add internal helper API for setting GDataEntry:published
This will be used in the upcoming ports of services to JSON.
https://bugzilla.gnome.org/show_bug.cgi?id=687597
gdata/gdata-entry.c | 16 ++++++++++++++++
gdata/gdata-private.h | 1 +
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/gdata/gdata-entry.c b/gdata/gdata-entry.c
index be242e5..7c5c7dc 100644
--- a/gdata/gdata-entry.c
+++ b/gdata/gdata-entry.c
@@ -849,6 +849,22 @@ _gdata_entry_set_updated (GDataEntry *self, gint64 updated)
self->priv->updated = updated;
}
+/*
+ * _gdata_entry_set_published:
+ * @self: a #GDataEntry
+ * @updated: the new published value
+ *
+ * Sets the value of the #GDataEntry:published property to @published.
+ *
+ * Since: UNRELEASED
+ */
+void
+_gdata_entry_set_published (GDataEntry *self, gint64 published)
+{
+ g_return_if_fail (GDATA_IS_ENTRY (self));
+ self->priv->published = published;
+}
+
/**
* gdata_entry_get_published:
* @self: a #GDataEntry
diff --git a/gdata/gdata-private.h b/gdata/gdata-private.h
index 8ad2487..2e4e84f 100644
--- a/gdata/gdata-private.h
+++ b/gdata/gdata-private.h
@@ -110,6 +110,7 @@ G_GNUC_INTERNAL void _gdata_feed_call_progress_callback (GDataFeed *self, gpoint
#include "gdata-entry.h"
#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_batch_data (GDataEntry *self, guint id, GDataBatchOperationType type);
#include "gdata-parser.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]