[libgdata/wip/rishi/drive: 1/4] core: Expose _gdata_feed_add_link() internally
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/wip/rishi/drive: 1/4] core: Expose _gdata_feed_add_link() internally
- Date: Fri, 24 Apr 2015 15:08:51 +0000 (UTC)
commit 2f3ca9f2077135959395746259fce1529905de18
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Apr 23 14:37:12 2015 +0200
core: Expose _gdata_feed_add_link() internally
This will be used by GDataDocumentsFeed to add a link for nextLink.
https://bugzilla.gnome.org/show_bug.cgi?id=684920
gdata/gdata-feed.c | 3 +--
gdata/gdata-private.h | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/gdata-feed.c b/gdata/gdata-feed.c
index fb31300..78a2b4a 100644
--- a/gdata/gdata-feed.c
+++ b/gdata/gdata-feed.c
@@ -56,7 +56,6 @@ static void get_xml (GDataParsable *parsable, GString *xml_string);
static void get_namespaces (GDataParsable *parsable, GHashTable *namespaces);
static void _gdata_feed_add_category (GDataFeed *self, GDataCategory *category);
-static void _gdata_feed_add_link (GDataFeed *self, GDataLink *link);
static void _gdata_feed_add_author (GDataFeed *self, GDataAuthor *author);
static gboolean parse_json (GDataParsable *parsable, JsonReader *reader, gpointer user_data, GError **error);
@@ -858,7 +857,7 @@ gdata_feed_look_up_link (GDataFeed *self, const gchar *rel)
return GDATA_LINK (element->data);
}
-static void
+void
_gdata_feed_add_link (GDataFeed *self, GDataLink *_link)
{
self->priv->links = g_list_prepend (self->priv->links, g_object_ref (_link));
diff --git a/gdata/gdata-private.h b/gdata/gdata-private.h
index 5d34fa7..53d0bd5 100644
--- a/gdata/gdata-private.h
+++ b/gdata/gdata-private.h
@@ -103,6 +103,7 @@ G_GNUC_INTERNAL GDataFeed *_gdata_feed_new_from_json (GType feed_type, const gch
GDataQueryProgressCallback progress_callback, gpointer
progress_user_data,
GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
G_GNUC_INTERNAL void _gdata_feed_add_entry (GDataFeed *self, GDataEntry *entry);
+G_GNUC_INTERNAL void _gdata_feed_add_link (GDataFeed *self, GDataLink *_link);
G_GNUC_INTERNAL gpointer _gdata_feed_parse_data_new (GType entry_type, GDataQueryProgressCallback
progress_callback, gpointer progress_user_data);
G_GNUC_INTERNAL void _gdata_feed_parse_data_free (gpointer data);
G_GNUC_INTERNAL void _gdata_feed_call_progress_callback (GDataFeed *self, gpointer user_data, GDataEntry
*entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]