[libgdata/wip/rishi/drive: 1/8] atom: Add macros for shared and viewed



commit 2c0db5acd2148c03e3271298cd6d08f29a40d2a3
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Apr 2 15:05:46 2015 +0200

    atom: Add macros for shared and viewed
    
    Having pre-defined and documented macros demystifies these strange
    URL-like strings for the application developer.

 docs/reference/gdata-sections.txt |    2 ++
 gdata/atom/gdata-category.h       |   20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gdata-sections.txt b/docs/reference/gdata-sections.txt
index b3fdcb0..0c109c2 100644
--- a/docs/reference/gdata-sections.txt
+++ b/docs/reference/gdata-sections.txt
@@ -748,7 +748,9 @@ GDataCalendarFeedPrivate
 <FILE>gdata-category</FILE>
 <TITLE>GDataCategory</TITLE>
 GDATA_CATEGORY_SCHEMA_LABELS
+GDATA_CATEGORY_SCHEMA_LABELS_SHARED
 GDATA_CATEGORY_SCHEMA_LABELS_STARRED
+GDATA_CATEGORY_SCHEMA_LABELS_VIEWED
 GDataCategory
 GDataCategoryClass
 gdata_category_new
diff --git a/gdata/atom/gdata-category.h b/gdata/atom/gdata-category.h
index 4eca2bd..f537952 100644
--- a/gdata/atom/gdata-category.h
+++ b/gdata/atom/gdata-category.h
@@ -38,6 +38,16 @@ G_BEGIN_DECLS
 #define GDATA_CATEGORY_SCHEMA_LABELS "http://schemas.google.com/g/2005/labels";
 
 /**
+ * GDATA_CATEGORY_SCHEMA_LABELS_SHARED:
+ *
+ * A term for categories of the %GDATA_CATEGORY_SCHEMA_LABELS schema which labels an entry as being 
“shared”. The semantics of this label are
+ * service-specific, but are obvious for services such as Google Documents.
+ *
+ * Since: 0.17.0
+ */
+#define GDATA_CATEGORY_SCHEMA_LABELS_SHARED GDATA_CATEGORY_SCHEMA_LABELS"#shared"
+
+/**
  * GDATA_CATEGORY_SCHEMA_LABELS_STARRED:
  *
  * A term for categories of the %GDATA_CATEGORY_SCHEMA_LABELS schema which labels an entry as being 
“starred”. The semantics of this label are
@@ -47,6 +57,16 @@ G_BEGIN_DECLS
  */
 #define GDATA_CATEGORY_SCHEMA_LABELS_STARRED GDATA_CATEGORY_SCHEMA_LABELS"#starred"
 
+/**
+ * GDATA_CATEGORY_SCHEMA_LABELS_VIEWED:
+ *
+ * A term for categories of the %GDATA_CATEGORY_SCHEMA_LABELS schema which labels an entry as being 
“viewed”. The semantics of this label are
+ * service-specific, but are obvious for services such as Google Documents.
+ *
+ * Since: 0.17.0
+ */
+#define GDATA_CATEGORY_SCHEMA_LABELS_VIEWED GDATA_CATEGORY_SCHEMA_LABELS"#viewed"
+
 #define GDATA_TYPE_CATEGORY            (gdata_category_get_type ())
 #define GDATA_CATEGORY(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_CATEGORY, GDataCategory))
 #define GDATA_CATEGORY_CLASS(k)                (G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_CATEGORY, 
GDataCategoryClass))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]