diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-11-03 10:30:39 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-11-03 10:30:39 +0100 |
commit | a1ce10274eed1c0a973189e620b6063c7a0fc8ea (patch) | |
tree | 94315625fdd23a8ff79d68bee683c60c5c520a25 | |
parent | 2330a84fcd7ef7b7d619f515ee2b134fdbb2dff1 (diff) | |
download | vala-a1ce10274eed1c0a973189e620b6063c7a0fc8ea.tar.gz |
vapi: Update GIR-based bindings
-rw-r--r-- | vapi/geocode-glib-1.0.vapi | 4 | ||||
-rw-r--r-- | vapi/gstreamer-1.0.vapi | 9 | ||||
-rw-r--r-- | vapi/gstreamer-audio-1.0.vapi | 6 | ||||
-rw-r--r-- | vapi/gstreamer-base-1.0.vapi | 4 | ||||
-rw-r--r-- | vapi/gstreamer-player-1.0.vapi | 3 | ||||
-rw-r--r-- | vapi/gstreamer-video-1.0.vapi | 19 |
6 files changed, 39 insertions, 6 deletions
diff --git a/vapi/geocode-glib-1.0.vapi b/vapi/geocode-glib-1.0.vapi index a12e6bb3d..6ec1c7980 100644 --- a/vapi/geocode-glib-1.0.vapi +++ b/vapi/geocode-glib-1.0.vapi @@ -39,6 +39,7 @@ namespace Geocode { public Forward.for_string (string str); public uint get_answer_count (); public bool get_bounded (); + public unowned Geocode.BoundingBox? get_search_area (); public GLib.List<weak Geocode.Place> search () throws GLib.Error; public async GLib.List<weak Geocode.Place> search_async (GLib.Cancellable? cancellable = null) throws GLib.Error; public void set_answer_count (uint count); @@ -46,8 +47,7 @@ namespace Geocode { public void set_search_area (Geocode.BoundingBox box); public uint answer_count { get; set; } public bool bounded { get; set; } - [NoAccessorMethod] - public Geocode.BoundingBox search_area { owned get; set; } + public Geocode.BoundingBox search_area { get; set; } } [CCode (cheader_filename = "geocode-glib/geocode-glib.h", type_id = "geocode_location_get_type ()")] public class Location : GLib.Object { diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index 1468272bc..6a6e2597a 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -1148,6 +1148,12 @@ namespace Gst { [CCode (has_construct_function = false)] protected DoubleRange (); } + [CCode (cheader_filename = "gst/gst.h", type_id = "gst_dynamic_type_factory_get_type ()")] + public class DynamicTypeFactory : Gst.PluginFeature { + [CCode (has_construct_function = false)] + protected DynamicTypeFactory (); + public static GLib.Type load (string factoryname); + } [CCode (cheader_filename = "gst/gst.h", type_id = "gst_element_get_type ()")] public abstract class Element : Gst.Object { public Gst.ClockTimeDiff base_time; @@ -3208,6 +3214,7 @@ namespace Gst { HIERARCHY, TEMPLATE_CAPS, CAPS, + NO_RECONFIGURE, DEFAULT } [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_PAD_LINK_", type_id = "gst_pad_link_return_get_type ()")] @@ -3874,6 +3881,8 @@ namespace Gst { [CCode (cheader_filename = "gst/gst.h")] public static void deinit (); [CCode (cheader_filename = "gst/gst.h")] + public static bool dynamic_type_register (Gst.Plugin plugin, GLib.Type type); + [CCode (cheader_filename = "gst/gst.h")] public static string error_get_message (GLib.Quark domain, int code); [CCode (cheader_filename = "gst/gst.h")] public static string filename_to_uri (string filename) throws GLib.Error; diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi index cff38f948..73c24025d 100644 --- a/vapi/gstreamer-audio-1.0.vapi +++ b/vapi/gstreamer-audio-1.0.vapi @@ -98,9 +98,9 @@ namespace Gst { public class Clock : Gst.SystemClock { [CCode (has_construct_function = false, type = "GstClock*")] public Clock (string name, owned Gst.Audio.ClockGetTimeFunc func); - public static Gst.ClockTime adjust (Gst.Clock clock, Gst.ClockTime time); - public static Gst.ClockTime get_time (Gst.Clock clock); - public static void invalidate (Gst.Clock clock); + public Gst.ClockTime adjust (Gst.ClockTime time); + public Gst.ClockTime get_time (); + public void invalidate (); public void reset (Gst.ClockTime time); } [CCode (cheader_filename = "gst/audio/audio.h", has_type_id = false)] diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi index 6217349cc..e6dcff727 100644 --- a/vapi/gstreamer-base-1.0.vapi +++ b/vapi/gstreamer-base-1.0.vapi @@ -499,6 +499,8 @@ namespace Gst { public uint get_blocksize (); [NoWrapper] public virtual Gst.Caps get_caps (Gst.Caps filter); + [Version (since = "1.12")] + public bool get_drop_out_of_segment (); public Gst.Sample? get_last_sample (); public Gst.ClockTime get_latency (); [Version (since = "1.2")] @@ -532,6 +534,8 @@ namespace Gst { public void set_blocksize (uint blocksize); [NoWrapper] public virtual bool set_caps (Gst.Caps caps); + [Version (since = "1.12")] + public void set_drop_out_of_segment (bool drop_out_of_segment); public void set_last_sample_enabled (bool enabled); [Version (since = "1.2")] public void set_max_bitrate (uint64 max_bitrate); diff --git a/vapi/gstreamer-player-1.0.vapi b/vapi/gstreamer-player-1.0.vapi index 6ba8440fe..98e47b9fd 100644 --- a/vapi/gstreamer-player-1.0.vapi +++ b/vapi/gstreamer-player-1.0.vapi @@ -7,8 +7,11 @@ namespace Gst { [CCode (has_construct_function = false)] public Player (owned Gst.PlayerVideoRenderer? video_renderer, owned Gst.PlayerSignalDispatcher? signal_dispatcher); public static uint config_get_position_update_interval (Gst.Structure config); + public static bool config_get_seek_accurate (Gst.Structure config); public static string config_get_user_agent (Gst.Structure config); public static void config_set_position_update_interval (Gst.Structure config, uint interval); + [Version (since = "1.12")] + public void config_set_seek_accurate (bool accurate); public static void config_set_user_agent (Gst.Structure config, string agent); public static unowned GLib.List<Gst.PlayerAudioInfo> get_audio_streams (Gst.PlayerMediaInfo info); public int64 get_audio_video_offset (); diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi index 935567bce..319845db2 100644 --- a/vapi/gstreamer-video-1.0.vapi +++ b/vapi/gstreamer-video-1.0.vapi @@ -239,6 +239,8 @@ namespace Gst { [Compact] [GIR (name = "VideoInfo")] public class Info { + [CCode (cname = "ABI.abi.field_order")] + public Gst.Video.FieldOrder ABI_abi_field_order; [CCode (cname = "ABI.abi.multiview_flags")] public Gst.Video.MultiviewFlags ABI_abi_multiview_flags; [CCode (cname = "ABI.abi.multiview_mode")] @@ -754,6 +756,14 @@ namespace Gst { SIERRA_LITE, BAYER } + [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FIELD_ORDER_", type_id = "gst_video_field_order_get_type ()")] + [GIR (name = "VideoFieldOrder")] + [Version (since = "1.12")] + public enum FieldOrder { + UNKNOWN, + TOP_FIELD_FIRST, + BOTTOM_FIELD_FIRST + } [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FLAG_", type_id = "gst_video_flags_get_type ()")] [Flags] [GIR (name = "VideoFlags")] @@ -836,7 +846,8 @@ namespace Gst { NV61, P010_10BE, P010_10LE, - IYU2 + IYU2, + VYUY } [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FORMAT_FLAG_", type_id = "gst_video_format_flags_get_type ()")] [Flags] @@ -1341,6 +1352,12 @@ namespace Gst { [CCode (cheader_filename = "gst/video/video.h")] public static bool event_parse_upstream_force_key_unit (Gst.Event event, out Gst.ClockTime running_time, out bool all_headers, out uint count); [CCode (cheader_filename = "gst/video/video.h")] + [Version (since = "1.12")] + public static Gst.Video.FieldOrder field_order_from_string (string order); + [CCode (cheader_filename = "gst/video/video.h")] + [Version (since = "1.12")] + public static unowned string field_order_to_string (Gst.Video.FieldOrder order); + [CCode (cheader_filename = "gst/video/video.h")] public static Gst.Video.Format format_from_fourcc (uint32 fourcc); [CCode (cheader_filename = "gst/video/video.h")] public static Gst.Video.Format format_from_masks (int depth, int bpp, int endianness, uint red_mask, uint green_mask, uint blue_mask, uint alpha_mask); |