[libgdata] [youtube] Add #defines for YouTube objects
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] [youtube] Add #defines for YouTube objects
- Date: Sat, 27 Mar 2010 15:04:32 +0000 (UTC)
commit 09022c450b40178782016036391d60973a7dba72
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Mar 27 15:04:10 2010 +0000
[youtube] Add #defines for YouTube objects
docs/reference/gdata-sections.txt | 1 +
gdata/services/youtube/gdata-youtube-credit.c | 4 ++--
gdata/services/youtube/gdata-youtube-credit.h | 9 +++++++++
3 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/docs/reference/gdata-sections.txt b/docs/reference/gdata-sections.txt
index 869d734..9adc0c4 100644
--- a/docs/reference/gdata-sections.txt
+++ b/docs/reference/gdata-sections.txt
@@ -1176,6 +1176,7 @@ GDataMediaCreditPrivate
<SECTION>
<FILE>gdata-youtube-credit</FILE>
<TITLE>GDataYouTubeCredit</TITLE>
+GDATA_YOUTUBE_CREDIT_ENTITY_PARTNER
GDataYouTubeCredit
GDataYouTubeCreditClass
gdata_youtube_credit_get_entity_type
diff --git a/gdata/services/youtube/gdata-youtube-credit.c b/gdata/services/youtube/gdata-youtube-credit.c
index 9a44ad3..361381a 100644
--- a/gdata/services/youtube/gdata-youtube-credit.c
+++ b/gdata/services/youtube/gdata-youtube-credit.c
@@ -71,7 +71,7 @@ gdata_youtube_credit_class_init (GDataYouTubeCreditClass *klass)
/**
* GDataYouTubeCredit:entity-type:
*
- * The type of entity who is credited. Currently this can only be "partner", for a YouTube partner.
+ * The type of entity who is credited. Currently this can only be %GDATA_YOUTUBE_CREDIT_ENTITY_PARTNER, for a YouTube partner.
*
* For more information, see the
* <ulink type="http" url="http://code.google.com/apis/youtube/2.0/reference.html#youtube_data_api_tag_media:credit">
@@ -157,7 +157,7 @@ get_namespaces (GDataParsable *parsable, GHashTable *namespaces)
*
* Gets the #GDataYouTubeCredit:entity-type property.
*
- * Return value: the type of the credited user (e.g. "partner"), or %NULL
+ * Return value: the type of the credited user (e.g. %GDATA_YOUTUBE_CREDIT_ENTITY_PARTNER), or %NULL
*
* Since: 0.4.0
**/
diff --git a/gdata/services/youtube/gdata-youtube-credit.h b/gdata/services/youtube/gdata-youtube-credit.h
index 9cd280d..b1b5360 100644
--- a/gdata/services/youtube/gdata-youtube-credit.h
+++ b/gdata/services/youtube/gdata-youtube-credit.h
@@ -28,6 +28,15 @@
G_BEGIN_DECLS
+/**
+ * GDATA_YOUTUBE_CREDIT_ENTITY_PARTNER:
+ *
+ * The credited entity is a YouTube partner.
+ *
+ * Since: 0.7.0
+ **/
+#define GDATA_YOUTUBE_CREDIT_ENTITY_PARTNER "partner"
+
#define GDATA_TYPE_YOUTUBE_CREDIT (gdata_youtube_credit_get_type ())
#define GDATA_YOUTUBE_CREDIT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_YOUTUBE_CREDIT, GDataYouTubeCredit))
#define GDATA_YOUTUBE_CREDIT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_YOUTUBE_CREDIT, GDataYouTubeCreditClass))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]