[totem-pl-parser] plparser: Add support for the "playing" attribute
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] plparser: Add support for the "playing" attribute
- Date: Sat, 9 Mar 2013 00:17:45 +0000 (UTC)
commit 40223365aa55302b65bdcc18a20f39a5c391d4a5
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 8 17:58:20 2013 +0100
plparser: Add support for the "playing" attribute
plparse/totem-pl-parser.c | 4 ++++
plparse/totem-pl-parser.h | 7 +++++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index a72fc01..64be427 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -566,6 +566,10 @@ totem_pl_parser_class_init (TotemPlParserClass *klass)
"Content type for the video stream", NULL,
G_PARAM_READABLE & G_PARAM_WRITABLE);
g_param_spec_pool_insert (totem_pl_parser_pspec_pool, pspec, TOTEM_TYPE_PL_PARSER);
+ pspec = g_param_spec_string ("playing", "playing",
+ "Whether the track is playing", NULL,
+ G_PARAM_READABLE & G_PARAM_WRITABLE);
+ g_param_spec_pool_insert (totem_pl_parser_pspec_pool, pspec, TOTEM_TYPE_PL_PARSER);
}
static void
diff --git a/plparse/totem-pl-parser.h b/plparse/totem-pl-parser.h
index c3ffd82..0a71731 100644
--- a/plparse/totem-pl-parser.h
+++ b/plparse/totem-pl-parser.h
@@ -258,6 +258,13 @@ typedef struct {
* from a web server).
**/
#define TOTEM_PL_PARSER_FIELD_CONTENT_TYPE "content-type"
+/**
+ * TOTEM_PL_PARSER_FIELD_PLAYING:
+ *
+ * Metadata field for an entry's status in a playlist. This is usually
+ * used when saving the state of an on-going playlist.
+ **/
+#define TOTEM_PL_PARSER_FIELD_PLAYING "playing"
/**
* TotemPlParserClass:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]