diff options
Diffstat (limited to 'libdleyna/server/props.c')
-rw-r--r-- | libdleyna/server/props.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libdleyna/server/props.c b/libdleyna/server/props.c index 15a404d..7e1eb65 100644 --- a/libdleyna/server/props.c +++ b/libdleyna/server/props.c @@ -37,6 +37,7 @@ static const gchar gUPnPAlbum[] = "object.container.album"; static const gchar gUPnPPerson[] = "object.container.person"; static const gchar gUPnPGenre[] = "object.container.genre"; static const gchar gUPnPPlaylist[] = "object.container.playlistContainer"; +static const gchar gUPnPStorage[] = "object.container.storageFolder"; static const gchar gUPnPAudioItem[] = "object.item.audioItem"; static const gchar gUPnPVideoItem[] = "object.item.videoItem"; static const gchar gUPnPImageItem[] = "object.item.imageItem"; @@ -53,6 +54,8 @@ static const unsigned int gUPnPGenreLen = (sizeof(gUPnPGenre) / sizeof(gchar)) - 1; static const unsigned int gUPnPPlaylistLen = (sizeof(gUPnPPlaylist) / sizeof(gchar)) - 1; +static const unsigned int gUPnPStorageLen = + (sizeof(gUPnPStorage) / sizeof(gchar)) - 1; static const unsigned int gUPnPAudioItemLen = (sizeof(gUPnPAudioItem) / sizeof(gchar)) - 1; static const unsigned int gUPnPVideoItemLen = @@ -102,6 +105,7 @@ static const gchar gMediaSpec2ImagePhoto[] = "image.photo"; static const gchar gMediaSpec2Playlist[] = "playlist"; static const gchar gMediaSpec2PlaylistItem[] = "item.playlist"; static const gchar gMediaSpec2Item[] = "item"; +static const gchar gMediaSpec2Storage[] = "storage"; typedef struct dls_prop_dlna_t_ dls_prop_dlna_t; struct dls_prop_dlna_t_ { @@ -1205,6 +1209,8 @@ const gchar *dls_props_media_spec_to_upnp_class(const gchar *m2spec_class) retval = gUPnPPlaylistItem; else if (!strcmp(m2spec_class, gMediaSpec2Item)) retval = gUPnPItem; + else if (!strcmp(m2spec_class, gMediaSpec2Storage)) + retval = gUPnPStorage; on_error: @@ -1281,6 +1287,9 @@ const gchar *dls_props_upnp_class_to_media_spec(const gchar *upnp_class) ptr = upnp_class + gUPnPItemLen; if (!*ptr || *ptr == '.') retval = gMediaSpec2Item; + } else if (!strncmp(upnp_class, gUPnPStorage, + gUPnPStorageLen)) { + retval = gMediaSpec2Storage; } on_error: |