diff options
author | Juan A. Suarez Romero <jasuarez@igalia.com> | 2015-12-15 17:35:00 +0100 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2015-12-16 13:52:54 +0100 |
commit | 900a3ab4ad7c93aecc5b10ba7722b026bb65d88a (patch) | |
tree | f6e7a732b6802ae67a58471a8721e0d63170f9e6 /bindings | |
parent | a9a7101b805082987e222a97fe1edada61038517 (diff) | |
download | grilo-900a3ab4ad7c93aecc5b10ba7722b026bb65d88a.tar.gz |
core: add GrlMedia media-type property
This property will store the type of media (audio, video, image or container).
The type for supported media in source has been renamed to GrlSupportedMedia.
https://bugzilla.gnome.org/show_bug.cgi?id=755551
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/vala/grilo-0.3.vapi | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/bindings/vala/grilo-0.3.vapi b/bindings/vala/grilo-0.3.vapi index 57f5485..6c9f012 100644 --- a/bindings/vala/grilo-0.3.vapi +++ b/bindings/vala/grilo-0.3.vapi @@ -179,6 +179,8 @@ namespace Grl { public void set_url (string url); public void set_url_data (string url, string mime); public static Grl.Media unserialize (string serial); + [NoAccessorMethod] + public Grl.MediaType media_type { get; set construct; } } [CCode (cheader_filename = "grilo.h", type_id = "grl_media_audio_get_type ()")] public class MediaAudio : Grl.Media { @@ -439,7 +441,7 @@ namespace Grl { public unowned string get_name (); public unowned Grl.Plugin get_plugin (); public int get_rank (); - public Grl.MediaType get_supported_media (); + public Grl.SupportedMedia get_supported_media (); [CCode (cname = "grl_source_supported_operations")] public uint get_supported_operations (); [CCode (array_length = false, array_null_terminated = true)] @@ -493,7 +495,7 @@ namespace Grl { [NoAccessorMethod] public string[] source_tags { owned get; set construct; } [NoAccessorMethod] - public Grl.MediaType supported_media { get; set construct; } + public Grl.SupportedMedia supported_media { get; set construct; } public signal void content_changed (GLib.GenericArray<Grl.Media> changed_medias, Grl.SourceChangeType change_type, bool location_unknown); } [CCode (cheader_filename = "grilo.h")] @@ -741,13 +743,12 @@ namespace Grl { FULL } [CCode (cheader_filename = "grilo.h", cprefix = "GRL_MEDIA_TYPE_", type_id = "grl_media_type_get_type ()")] - [Flags] public enum MediaType { - NONE, + UNKNOWN, AUDIO, VIDEO, IMAGE, - ALL + CONTAINER } [CCode (cheader_filename = "grilo.h", cprefix = "GRL_RANK_", has_type_id = false)] public enum Rank { @@ -771,6 +772,15 @@ namespace Grl { ADDED, REMOVED } + [CCode (cheader_filename = "grilo.h", cprefix = "GRL_SUPPORTED_MEDIA_", type_id = "grl_supported_media_get_type ()")] + [Flags] + public enum SupportedMedia { + NONE, + AUDIO, + VIDEO, + IMAGE, + ALL + } [CCode (cheader_filename = "grilo.h", cprefix = "GRL_OP_", type_id = "grl_supported_ops_get_type ()")] [Flags] public enum SupportedOps { |