[rygel/wip/create-reference: 7/11] WIP
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/create-reference: 7/11] WIP
- Date: Wed, 6 Mar 2013 16:20:19 +0000 (UTC)
commit 121d3d929b6ca52b7fa618274c95900a65c8065a
Author: Jens Georg <jensg openismus com>
Date: Mon Mar 4 14:17:00 2013 +0100
WIP
src/plugins/media-export/Makefile.am | 1 +
...rygel-media-export-playlist-root-container.vala | 14 +++++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/Makefile.am b/src/plugins/media-export/Makefile.am
index 7bba83d..19f5338 100644
--- a/src/plugins/media-export/Makefile.am
+++ b/src/plugins/media-export/Makefile.am
@@ -29,6 +29,7 @@ librygel_media_export_la_SOURCES = \
rygel-media-export-object-factory.vala \
rygel-media-export-writable-db-container.vala \
rygel-media-export-playlist-root-container.vala \
+ rygel-media-export-playlist-container.vala \
rygel-media-export-music-item.vala \
rygel-media-export-video-item.vala \
rygel-media-export-photo-item.vala \
diff --git a/src/plugins/media-export/rygel-media-export-playlist-root-container.vala
b/src/plugins/media-export/rygel-media-export-playlist-root-container.vala
index ef0cb39..4479290 100644
--- a/src/plugins/media-export/rygel-media-export-playlist-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-playlist-root-container.vala
@@ -18,9 +18,9 @@ internal class Rygel.MediaExport.PlaylistRootContainer : Rygel.WritableContainer
this.create_classes = new ArrayList<string> ();
this.create_classes.add (Rygel.MediaContainer.PLAYLIST);
- this.uris.add ("rygel://playlist-root");
-
- debug ("=> Updated create_classes");
+ // Need to add an URI otherwise core doesn't mark the container as
+ // writable
+ this.uris.add ("rygel-writable://playlist-root");
}
public async void add_item (Rygel.MediaItem item,
@@ -53,6 +53,14 @@ internal class Rygel.MediaExport.PlaylistRootContainer : Rygel.WritableContainer
assert_not_reached ();
}
+ public async string add_reference (Rygel.MediaObject object,
+ Cancellable? cancellable)
+ throws Error {
+ warning ("===========================> add reference called");
+
+ return "";
+ }
+
public async void remove_container (string id,
Cancellable? cancellable)
throws Error {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]