Commit cbd7b680 authored by Rico Tzschichholz's avatar Rico Tzschichholz

vapi: Update GIR-based bindings

parent a06c73d1
......@@ -4615,7 +4615,7 @@ namespace Gdk {
public bool get_has_cursor ();
public bool get_history (Gdk.Window window, uint32 start, uint32 stop, [CCode (array_length_cname = "n_events", array_length_pos = 4.1)] out Gdk.TimeCoord[] events);
public bool get_key (uint index_, out uint keyval, out Gdk.ModifierType modifiers);
public unowned Gdk.Window get_last_event_window ();
public unowned Gdk.Window? get_last_event_window ();
public Gdk.InputMode get_mode ();
public int get_n_axes ();
public int get_n_keys ();
......@@ -5118,6 +5118,7 @@ namespace Gdk {
public unowned Gdk.GLContext get_shared_context ();
public void get_version (out int major, out int minor);
public unowned Gdk.Window get_window ();
public bool is_legacy ();
public void make_current ();
public bool realize () throws GLib.Error;
public void set_debug_enabled (bool enabled);
......
......@@ -248,7 +248,8 @@ namespace Gdk {
BAD_OPTION,
UNKNOWN_TYPE,
UNSUPPORTED_OPERATION,
FAILED;
FAILED,
INCOMPLETE_ANIMATION;
public static GLib.Quark quark ();
}
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", instance_pos = 1.9)]
......
......@@ -12,7 +12,7 @@ namespace Gdl {
public GLib.List<weak Gdl.DockObject> get_named_items ();
[Deprecated (since = "3.6")]
public unowned Gdl.DockPlaceholder get_placeholder_by_name (string name);
public unowned Gdl.DockObject get_root ();
public unowned Gdl.DockObject? get_root ();
public void hide_preview ();
public Gtk.Widget new_from (bool floating);
public void set_skip_taskbar (bool skip);
......@@ -61,7 +61,7 @@ namespace Gdl {
public Gdl.DockItemBehavior get_behavior_flags ();
public unowned Gtk.Widget get_child ();
public void get_drag_area (Gdk.Rectangle rect);
public unowned Gtk.Widget get_grip ();
public unowned Gtk.Widget? get_grip ();
public Gtk.Orientation get_orientation ();
public unowned Gtk.Widget get_tablabel ();
public void hide_grip ();
......@@ -157,7 +157,7 @@ namespace Gdl {
public void foreach_toplevel (bool include_controller, GLib.Func function);
public unowned Gdl.DockObject get_controller ();
public string get_dock_name ();
public unowned Gdl.DockObject get_object (string nick_name);
public unowned Gdl.DockObject? get_object (string nick_name);
public void remove (Gdl.DockObject object);
public void set_controller (Gdl.DockObject new_controller);
[NoAccessorMethod]
......@@ -192,10 +192,10 @@ namespace Gdl {
public unowned Gdl.DockObject get_controller ();
public unowned string get_long_name ();
public unowned GLib.Object get_master ();
public unowned Gdl.DockObject get_parent_object ();
public unowned Gdl.DockObject? get_parent_object ();
public unowned Gdk.Pixbuf get_pixbuf ();
public unowned string get_stock_id ();
public unowned Gdl.Dock get_toplevel ();
public unowned Gdl.Dock? get_toplevel ();
public bool is_automatic ();
public bool is_bound ();
public bool is_closed ();
......
......@@ -34,7 +34,7 @@ namespace GLib {
[CCode (cheader_filename = "gio/gio.h")]
public static string get_description (string type);
[CCode (cheader_filename = "gio/gio.h")]
public static string get_generic_icon_name (string type);
public static string? get_generic_icon_name (string type);
[CCode (cheader_filename = "gio/gio.h")]
public static GLib.Icon get_icon (string type);
[CCode (cheader_filename = "gio/gio.h")]
......@@ -535,7 +535,7 @@ namespace GLib {
public bool get_exit_on_close ();
public unowned string get_guid ();
public uint32 get_last_serial ();
public unowned GLib.Credentials get_peer_credentials ();
public unowned GLib.Credentials? get_peer_credentials ();
public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public unowned GLib.IOStream get_stream ();
......@@ -1379,7 +1379,7 @@ namespace GLib {
public abstract ssize_t read ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public bool read_all ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, out size_t bytes_read, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public async bool read_all_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable, out size_t bytes_read) throws GLib.Error;
public virtual async ssize_t read_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public virtual async ssize_t read_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[]? buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public GLib.Bytes read_bytes (size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async GLib.Bytes read_bytes_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool set_pending () throws GLib.Error;
......@@ -1629,7 +1629,7 @@ namespace GLib {
public abstract ssize_t write ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public bool write_all ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public async bool write_all_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable, out size_t bytes_written) throws GLib.Error;
public virtual async ssize_t write_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public virtual async ssize_t write_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[]? buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public ssize_t write_bytes (GLib.Bytes bytes, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async ssize_t write_bytes_async (GLib.Bytes bytes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
}
......@@ -1758,7 +1758,7 @@ namespace GLib {
public void @get (string key, string format, ...);
public bool get_boolean (string key);
public GLib.Settings get_child (string name);
public GLib.Variant get_default_value (string key);
public GLib.Variant? get_default_value (string key);
public double get_double (string key);
public int get_enum (string key);
public uint get_flags (string key);
......@@ -1771,7 +1771,7 @@ namespace GLib {
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_strv (string key);
public uint get_uint (string key);
public GLib.Variant get_user_value (string key);
public GLib.Variant? get_user_value (string key);
public GLib.Variant get_value (string key);
public bool is_writable (string name);
[CCode (array_length = false, array_null_terminated = true)]
......@@ -1974,18 +1974,15 @@ namespace GLib {
public string[] ignore_hosts { owned get; set; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_get_type ()")]
public class Socket : GLib.Object, GLib.Initable {
public class Socket : GLib.Object, GLib.DatagramBased, GLib.Initable {
[CCode (has_construct_function = false)]
public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
public GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
public bool check_connect_result () throws GLib.Error;
public bool close () throws GLib.Error;
public GLib.IOCondition condition_check (GLib.IOCondition condition);
public bool condition_timed_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool condition_wait (GLib.IOCondition condition, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.SocketSource create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
[CCode (has_construct_function = false)]
public Socket.from_fd (int fd) throws GLib.Error;
public ssize_t get_available_bytes ();
......@@ -2016,7 +2013,6 @@ namespace GLib {
public ssize_t receive_with_blocking ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
public ssize_t send ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
public ssize_t send_message (GLib.SocketAddress? address, [CCode (array_length_cname = "num_vectors", array_length_pos = 2.5)] GLib.OutputVector[] vectors, [CCode (array_length_cname = "num_messages", array_length_pos = 3.5)] GLib.SocketControlMessage[]? messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public int send_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.OutputMessage[] messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public ssize_t send_to (GLib.SocketAddress? address, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
public ssize_t send_with_blocking ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
public void set_blocking (bool blocking);
......@@ -2287,7 +2283,7 @@ namespace GLib {
public TestDBus (GLib.TestDBusFlags flags);
public void add_service_dir (string path);
public void down ();
public unowned string get_bus_address ();
public unowned string? get_bus_address ();
public GLib.TestDBusFlags get_flags ();
public void stop ();
public static void unset ();
......@@ -2387,7 +2383,7 @@ namespace GLib {
[CCode (has_construct_function = false)]
protected TlsDatabase ();
public virtual string? create_certificate_handle (GLib.TlsCertificate certificate);
public virtual GLib.TlsCertificate lookup_certificate_for_handle (string handle, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public virtual GLib.TlsCertificate? lookup_certificate_for_handle (string handle, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public virtual async GLib.TlsCertificate lookup_certificate_for_handle_async (string handle, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public virtual GLib.TlsCertificate lookup_certificate_issuer (GLib.TlsCertificate certificate, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public virtual async GLib.TlsCertificate lookup_certificate_issuer_async (GLib.TlsCertificate certificate, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
......@@ -2519,10 +2515,10 @@ namespace GLib {
public abstract void change_state (GLib.Variant value);
public abstract bool get_enabled ();
public abstract unowned string get_name ();
public abstract unowned GLib.VariantType get_parameter_type ();
public abstract unowned GLib.VariantType? get_parameter_type ();
public abstract GLib.Variant get_state ();
public abstract GLib.Variant? get_state_hint ();
public abstract unowned GLib.VariantType get_state_type ();
public abstract unowned GLib.VariantType? get_state_type ();
public static bool name_is_valid (string action_name);
public static bool parse_detailed_name (string detailed_name, out string action_name, out GLib.Variant target_value) throws GLib.Error;
public static string print_detailed_name (string action_name, GLib.Variant? target_value);
......@@ -2617,7 +2613,7 @@ namespace GLib {
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_get_type ()")]
public interface Converter : GLib.Object {
public abstract GLib.ConverterResult convert ([CCode (array_length_cname = "inbuf_size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] inbuf, [CCode (array_length_cname = "outbuf_size", array_length_pos = 2.5, array_length_type = "gsize", type = "void*")] uint8[] outbuf, GLib.ConverterFlags flags, out size_t bytes_read, out size_t bytes_written) throws GLib.Error;
public abstract GLib.ConverterResult convert ([CCode (array_length_cname = "inbuf_size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[]? inbuf, [CCode (array_length_cname = "outbuf_size", array_length_pos = 2.5, array_length_type = "gsize", type = "void*")] uint8[] outbuf, GLib.ConverterFlags flags, out size_t bytes_read, out size_t bytes_written) throws GLib.Error;
public abstract void reset ();
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_interface_get_type ()")]
......@@ -2646,6 +2642,14 @@ namespace GLib {
public virtual signal void object_added (GLib.DBusObject object);
public virtual signal void object_removed (GLib.DBusObject object);
}
[CCode (cheader_filename = "gio/gio.h", type_cname = "GDatagramBasedInterface", type_id = "g_datagram_based_get_type ()")]
public interface DatagramBased : GLib.Object {
public abstract GLib.IOCondition condition_check (GLib.IOCondition condition);
public abstract bool condition_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
public abstract GLib.Source create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
public abstract int receive_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.InputMessage[] messages, int flags, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
public abstract int send_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.OutputMessage[] messages, int flags, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_drive_get_type ()")]
public interface Drive : GLib.Object {
public abstract bool can_eject ();
......@@ -2882,7 +2886,7 @@ namespace GLib {
public abstract bool can_poll ();
public abstract GLib.PollableSource create_source (GLib.Cancellable? cancellable = null);
public abstract bool is_writable ();
public abstract ssize_t write_nonblocking ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buffer) throws GLib.Error;
public abstract ssize_t write_nonblocking ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[]? buffer) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h", type_cname = "GProxyInterface", type_id = "g_proxy_get_type ()")]
public interface Proxy : GLib.Object {
......@@ -2918,6 +2922,7 @@ namespace GLib {
public interface SocketConnectable : GLib.Object {
public abstract GLib.SocketAddressEnumerator enumerate ();
public abstract GLib.SocketAddressEnumerator proxy_enumerate ();
public abstract string to_string ();
}
[CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsBackendInterface", type_id = "g_tls_backend_get_type ()")]
public interface TlsBackend : GLib.Object {
......@@ -3023,6 +3028,18 @@ namespace GLib {
public GLib.FileAttributeInfoFlags flags;
}
[CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
public struct InputMessage {
public weak GLib.SocketAddress address;
[CCode (array_length = false, array_null_terminated = true)]
public weak GLib.InputVector[] vectors;
public uint num_vectors;
public size_t bytes_received;
public int flags;
[CCode (array_length = false, array_null_terminated = true)]
public weak GLib.SocketControlMessage[] control_messages;
public uint num_control_messages;
}
[CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
public struct InputVector {
public void* buffer;
public size_t size;
......@@ -3701,7 +3718,8 @@ namespace GLib {
PROXY_NOT_ALLOWED,
BROKEN_PIPE,
CONNECTION_CLOSED,
NOT_CONNECTED;
NOT_CONNECTED,
MESSAGE_TOO_LARGE;
[CCode (cheader_filename = "gio/gio.h")]
public static unowned GLib.IOError from_errno (int err_no);
[CCode (cheader_filename = "gio/gio.h")]
......@@ -3753,7 +3771,7 @@ namespace GLib {
[CCode (cheader_filename = "gio/gio.h", instance_pos = 7.9)]
public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value) throws GLib.Error;
[CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
public delegate GLib.DBusMessage DBusMessageFilterFunction (GLib.DBusConnection connection, owned GLib.DBusMessage message, bool incoming);
public delegate GLib.DBusMessage? DBusMessageFilterFunction (GLib.DBusConnection connection, owned GLib.DBusMessage message, bool incoming);
[CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
public delegate GLib.Type DBusProxyTypeFunc (GLib.DBusObjectManagerClient manager, string object_path, string? interface_name);
[CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
......@@ -3764,6 +3782,8 @@ namespace GLib {
public delegate string[] DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
[CCode (cheader_filename = "gio/gio.h", instance_pos = 4.9)]
public delegate GLib.DBusInterfaceInfo DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
[CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
public delegate bool DatagramBasedSourceFunc (GLib.DatagramBased datagram_based, GLib.IOCondition condition);
[CCode (cheader_filename = "gio/gio.h", instance_pos = 4.9)]
public delegate void FileMeasureProgressCallback (bool reporting, uint64 current_size, uint64 num_dirs, uint64 num_files);
[CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
......
......@@ -269,6 +269,7 @@ namespace GI {
public class VFuncInfo : GI.BaseInfo {
[CCode (has_construct_function = false)]
protected VFuncInfo ();
public static void* get_address (GI.VFuncInfo info, GLib.Type implementor_gtype) throws GLib.Error;
public static GI.VFuncInfoFlags get_flags (GI.VFuncInfo info);
public static GI.FunctionInfo get_invoker (GI.VFuncInfo info);
public static int get_offset (GI.VFuncInfo info);
......
This diff is collapsed.
......@@ -3,15 +3,36 @@
[CCode (cprefix = "Gst", gir_namespace = "GstAllocators", gir_version = "1.0", lower_case_cprefix = "gst_")]
namespace Gst {
namespace Allocators {
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstFdAllocator", lower_case_cprefix = "gst_fd_allocator_", type_id = "gst_fd_allocator_get_type ()")]
[GIR (name = "FdAllocator")]
public class FdAllocator : Gst.Allocator {
[CCode (has_construct_function = false, type = "GstAllocator*")]
public FdAllocator ();
public static Gst.Memory alloc (Gst.Allocator allocator, int fd, size_t size, Gst.Allocators.FdMemoryFlags flags);
}
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstFdMemoryFlags", cprefix = "GST_FD_MEMORY_FLAG_", has_type_id = false)]
[Flags]
[GIR (name = "FdMemoryFlags")]
public enum FdMemoryFlags {
NONE,
KEEP_MAPPED,
MAP_PRIVATE
}
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GST_ALLOCATOR_DMABUF")]
public const string ALLOCATOR_DMABUF;
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GST_ALLOCATOR_FD")]
public const string ALLOCATOR_FD;
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_dmabuf_allocator_alloc")]
public static Gst.Memory dmabuf_allocator_alloc (Gst.Allocator? allocator, int fd, size_t size);
public static Gst.Memory dmabuf_allocator_alloc (Gst.Allocator allocator, int fd, size_t size);
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_dmabuf_allocator_new")]
public static Gst.Allocator dmabuf_allocator_new ();
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_dmabuf_memory_get_fd")]
public static int dmabuf_memory_get_fd (Gst.Memory mem);
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_fd_memory_get_fd")]
public static int fd_memory_get_fd (Gst.Memory mem);
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_is_dmabuf_memory")]
public static bool is_dmabuf_memory (Gst.Memory mem);
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_is_fd_memory")]
public static bool is_fd_memory (Gst.Memory mem);
}
}
......@@ -72,6 +72,8 @@ namespace Gst {
public virtual signal void need_data (uint length);
[HasEmitter]
public virtual signal Gst.FlowReturn push_buffer (Gst.Buffer buffer);
[HasEmitter]
public virtual signal Gst.FlowReturn push_sample (Gst.Sample sample);
public virtual signal bool seek_data (uint64 offset);
}
[CCode (cheader_filename = "gst/app/app.h", cprefix = "GST_APP_STREAM_TYPE_", type_id = "gst_app_stream_type_get_type ()")]
......
......@@ -20,7 +20,9 @@ namespace Gst {
public Gst.Audio.BaseSinkSlaveMethod get_slave_method ();
[NoWrapper]
public virtual Gst.Buffer payload (Gst.Buffer buffer);
public void report_device_failure ();
public void set_alignment_threshold (Gst.ClockTime alignment_threshold);
public void set_custom_slaving_callback (owned Gst.Audio.BaseSinkCustomSlavingCallback callback);
public void set_discont_wait (Gst.ClockTime discont_wait);
public void set_drift_tolerance (int64 drift_tolerance);
public void set_provide_clock (bool provide);
......@@ -123,8 +125,10 @@ namespace Gst {
public int get_plc_aware ();
public Gst.ClockTime get_tolerance ();
[NoWrapper]
public virtual Gst.Caps getcaps (Gst.Caps filter);
[NoWrapper]
public virtual Gst.FlowReturn handle_frame (Gst.Buffer buffer);
public void merge_tags (Gst.TagList tags, Gst.TagMergeMode mode);
public void merge_tags (Gst.TagList? tags, Gst.TagMergeMode mode);
public virtual bool negotiate ();
[NoWrapper]
public virtual bool open ();
......@@ -134,6 +138,7 @@ namespace Gst {
public virtual Gst.FlowReturn pre_push (Gst.Buffer buffer);
[NoWrapper]
public virtual bool propose_allocation (Gst.Query query);
public Gst.Caps proxy_getcaps (Gst.Caps? caps, Gst.Caps? filter);
public void set_drainable (bool enabled);
public void set_estimate_rate (bool enabled);
[NoWrapper]
......@@ -146,14 +151,21 @@ namespace Gst {
public void set_plc (bool enabled);
public void set_plc_aware (bool plc);
public void set_tolerance (Gst.ClockTime tolerance);
public void set_use_default_pad_acceptcaps (bool use);
[NoWrapper]
public virtual bool sink_event (Gst.Event event);
[NoWrapper]
public virtual bool sink_query (Gst.Query query);
[NoWrapper]
public virtual bool src_event (Gst.Event event);
[NoWrapper]
public virtual bool src_query (Gst.Query query);
[NoWrapper]
public virtual bool start ();
[NoWrapper]
public virtual bool stop ();
[NoWrapper]
public virtual bool transform_meta (Gst.Buffer outbuf, Gst.Meta meta, Gst.Buffer inbuf);
public int64 min_latency { get; set; }
public bool plc { get; set; }
public int64 tolerance { get; set; }
......@@ -193,7 +205,7 @@ namespace Gst {
public virtual Gst.Caps getcaps (Gst.Caps filter);
[NoWrapper]
public virtual Gst.FlowReturn handle_frame (Gst.Buffer buffer);
public void merge_tags (Gst.TagList tags, Gst.TagMergeMode mode);
public void merge_tags (Gst.TagList? tags, Gst.TagMergeMode mode);
public virtual bool negotiate ();
[NoWrapper]
public virtual bool open ();
......@@ -201,7 +213,7 @@ namespace Gst {
public virtual Gst.FlowReturn pre_push (Gst.Buffer buffer);
[NoWrapper]
public virtual bool propose_allocation (Gst.Query query);
public Gst.Caps proxy_getcaps (Gst.Caps caps, Gst.Caps filter);
public Gst.Caps proxy_getcaps (Gst.Caps? caps, Gst.Caps? filter);
public void set_drainable (bool enabled);
[NoWrapper]
public virtual bool set_format (Gst.Audio.Info info);
......@@ -220,11 +232,17 @@ namespace Gst {
[NoWrapper]
public virtual bool sink_event (Gst.Event event);
[NoWrapper]
public virtual bool sink_query (Gst.Query query);
[NoWrapper]
public virtual bool src_event (Gst.Event event);
[NoWrapper]
public virtual bool src_query (Gst.Query query);
[NoWrapper]
public virtual bool start ();
[NoWrapper]
public virtual bool stop ();
[NoWrapper]
public virtual bool transform_meta (Gst.Buffer outbuf, Gst.Meta meta, Gst.Buffer inbuf);
public bool hard_resync { get; set; }
public bool mark_granule { get; }
public bool perfect_timestamp { get; set; }
......@@ -413,12 +431,23 @@ namespace Gst {
public int segtotal;
public int seglatency;
}
[CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_BASE_SINK_DISCONT_REASON_", has_type_id = false)]
[GIR (name = "AudioBaseSinkDiscontReason")]
public enum BaseSinkDiscontReason {
NO_DISCONT,
NEW_CAPS,
FLUSH,
SYNC_LATENCY,
ALIGNMENT,
DEVICE_FAILURE
}
[CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_BASE_SINK_SLAVE_", type_id = "gst_audio_base_sink_slave_method_get_type ()")]
[GIR (name = "AudioBaseSinkSlaveMethod")]
public enum BaseSinkSlaveMethod {
RESAMPLE,
SKEW,
NONE
NONE,
CUSTOM
}
[CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_BASE_SRC_SLAVE_", type_id = "gst_audio_base_src_slave_method_get_type ()")]
[GIR (name = "AudioBaseSrcSlaveMethod")]
......@@ -581,6 +610,8 @@ namespace Gst {
CUBIC,
DB
}
[CCode (cheader_filename = "gst/audio/audio.h", instance_pos = 5.9)]
public delegate void BaseSinkCustomSlavingCallback (Gst.Audio.BaseSink sink, Gst.ClockTime etime, Gst.ClockTime itime, Gst.ClockTimeDiff requested_skew, Gst.Audio.BaseSinkDiscontReason discont_reason);
[CCode (cheader_filename = "gst/audio/audio.h", instance_pos = 1.9)]
public delegate Gst.ClockTime ClockGetTimeFunc (Gst.Clock clock);
[CCode (cheader_filename = "gst/audio/audio.h", has_target = false)]
......
......@@ -14,6 +14,10 @@ namespace Gst {
public void copy ([CCode (array_length_cname = "size", array_length_pos = 2.1, array_length_type = "gsize")] out unowned uint8[] dest, size_t offset);
public GLib.Bytes copy_bytes (size_t offset, size_t size);
public void flush (size_t flush);
public Gst.Buffer? get_buffer (size_t nbytes);
public Gst.Buffer? get_buffer_fast (size_t nbytes);
public Gst.BufferList? get_buffer_list (size_t nbytes);
public GLib.List<Gst.Buffer>? get_list (size_t nbytes);
[CCode (array_length_pos = 0.1, array_length_type = "gsize")]
public unowned uint8[]? map ();
public ssize_t masked_scan_uint32 (uint32 mask, uint32 pattern, size_t offset, size_t size);
......@@ -27,6 +31,7 @@ namespace Gst {
public uint8[]? take ();
public Gst.Buffer? take_buffer (size_t nbytes);
public Gst.Buffer? take_buffer_fast (size_t nbytes);
public Gst.BufferList? take_buffer_list (size_t nbytes);
public GLib.List<Gst.Buffer>? take_list (size_t nbytes);
public void unmap ();
}
......@@ -148,6 +153,8 @@ namespace Gst {
public void init ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
[CCode (cname = "gst_byte_reader_masked_scan_uint32")]
public uint masked_scan_uint32 (uint32 mask, uint32 pattern, uint offset, uint size);
[CCode (cname = "gst_byte_reader_masked_scan_uint32_peek")]
public uint masked_scan_uint32_peek (uint32 mask, uint32 pattern, uint offset, uint size, uint32 value);
[CCode (cname = "gst_byte_reader_peek_data")]
public bool peek_data ([CCode (array_length_cname = "size", array_length_pos = 0.5, array_length_type = "guint")] out unowned uint8[] val);
[CCode (cname = "gst_byte_reader_peek_float32_be")]
......@@ -313,7 +320,14 @@ namespace Gst {
public bool query_default (Gst.Base.CollectData data, Gst.Query query, bool discard);
public Gst.Buffer read_buffer (Gst.Base.CollectData data, uint size);
public bool remove_pad (Gst.Pad pad);
public void set_buffer_function (Gst.Base.CollectPadsBufferFunction func);
public void set_clip_function (Gst.Base.CollectPadsClipFunction clipfunc);
public void set_compare_function (Gst.Base.CollectPadsCompareFunction func);
public void set_event_function (Gst.Base.CollectPadsEventFunction func);
public void set_flush_function (Gst.Base.CollectPadsFlushFunction func);
public void set_flushing (bool flushing);
public void set_function (Gst.Base.CollectPadsFunction func);
public void set_query_function (Gst.Base.CollectPadsQueryFunction func);
public void set_waiting (Gst.Base.CollectData data, bool waiting);
public bool src_event_default (Gst.Pad pad, Gst.Event event);
public void start ();
......@@ -343,9 +357,12 @@ namespace Gst {
[CCode (has_construct_function = false)]
public FlowCombiner ();
public void add_pad (Gst.Pad pad);
public void clear ();
public void free ();
public void remove_pad (Gst.Pad pad);
public void reset ();
public Gst.FlowReturn update_flow (Gst.FlowReturn fret);
public Gst.FlowReturn update_pad_flow (Gst.Pad pad, Gst.FlowReturn fret);
}
[CCode (cheader_filename = "gst/base/base.h", type_id = "gst_base_parse_get_type ()")]
[GIR (name = "BaseParse")]
......@@ -367,6 +384,7 @@ namespace Gst {
public virtual Gst.Caps get_sink_caps (Gst.Caps filter);
[NoWrapper]
public virtual Gst.FlowReturn handle_frame (Gst.Base.ParseFrame frame, int skipsize);
public void merge_tags (Gst.TagList? tags, Gst.TagMergeMode mode);
[NoWrapper]
public virtual Gst.FlowReturn pre_push_frame (Gst.Base.ParseFrame frame);
public Gst.FlowReturn push_frame (Gst.Base.ParseFrame frame);
......@@ -602,6 +620,7 @@ namespace Gst {
[GIR (name = "BaseTransform")]
public abstract class Transform : Gst.Element {
public bool have_segment;
public weak Gst.Buffer queued_buf;
public weak Gst.Segment segment;
public weak Gst.Pad sinkpad;
public weak Gst.Pad srcpad;
......@@ -619,6 +638,8 @@ namespace Gst {
public virtual bool filter_meta (Gst.Query query, GLib.Type api, Gst.Structure @params);
[NoWrapper]
public virtual Gst.Caps fixate_caps (Gst.PadDirection direction, Gst.Caps caps, Gst.Caps othercaps);
[NoWrapper]
public virtual Gst.FlowReturn generate_output (Gst.Buffer outbuf);
public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params);
public Gst.BufferPool get_buffer_pool ();
[NoWrapper]
......@@ -650,6 +671,8 @@ namespace Gst {
[NoWrapper]
public virtual bool stop ();
[NoWrapper]
public virtual Gst.FlowReturn submit_input_buffer (bool is_discont, Gst.Buffer input);
[NoWrapper]
public virtual Gst.FlowReturn transform (Gst.Buffer inbuf, Gst.Buffer outbuf);
[NoWrapper]
public virtual Gst.Caps transform_caps (Gst.PadDirection direction, Gst.Caps caps, Gst.Caps filter);
......@@ -660,6 +683,7 @@ namespace Gst {
[NoWrapper]
public virtual bool transform_size (Gst.PadDirection direction, Gst.Caps caps, size_t size, Gst.Caps othercaps, size_t othersize);
public void update_qos (double proportion, Gst.ClockTimeDiff diff, Gst.ClockTime timestamp);
public bool update_src_caps (Gst.Caps updated_caps);
[NoAccessorMethod]
public bool qos { get; set; }
}
......@@ -671,6 +695,8 @@ namespace Gst {
public weak Gst.Buffer buffer;
public uint pos;
public weak Gst.Segment segment;
[CCode (cname = "ABI.abi.dts")]
public int64 ABI_abi_dts;
}
[CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsStateFlags", cprefix = "GST_COLLECT_PADS_STATE_", has_type_id = false)]
[Flags]
......
......@@ -3,6 +3,11 @@
[CCode (cprefix = "Gst", gir_namespace = "GstCheck", gir_version = "1.0", lower_case_cprefix = "gst_")]
namespace Gst {
namespace Check {
[CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessThread")]
[Compact]
[GIR (name = "HarnessThread")]
public class HarnessThread {
}
[CCode (cheader_filename = "gst/check/gstbufferstraw.h,gst/check/gstcheck.h,gst/check/gstconsistencychecker.h,gst/check/internal-check.h", cname = "GstStreamConsistency", lower_case_cprefix = "gst_consistency_checker_")]
[Compact]
[GIR (name = "StreamConsistency")]
......@@ -42,6 +47,127 @@ namespace Gst {
public int size;
public int abi_size;
}
[CCode (cheader_filename = "gst/check/check.h", cname = "GstHarness", has_type_id = false)]
[GIR (name = "Harness")]
public struct Harness {
public weak Gst.Element element;
public weak Gst.Pad srcpad;
public weak Gst.Pad sinkpad;
[CCode (cname = "gst_harness_add_element_sink_pad")]
public void add_element_sink_pad (Gst.Pad sinkpad);
[CCode (cname = "gst_harness_add_element_src_pad")]
public void add_element_src_pad (Gst.Pad srcpad);
[CCode (cname = "gst_harness_add_probe")]
public void add_probe (string element_name, string pad_name, Gst.PadProbeType mask, owned Gst.PadProbeCallback callback);
[CCode (cname = "gst_harness_add_sink")]
public void add_sink (string sink_element_name);
[CCode (cname = "gst_harness_add_sink_harness")]
public void add_sink_harness (owned Gst.Check.Harness sink_harness);
[CCode (cname = "gst_harness_add_sink_parse")]
public void add_sink_parse (string launchline);
[CCode (cname = "gst_harness_add_src")]
public void add_src (string src_element_name, bool has_clock_wait);
[CCode (cname = "gst_harness_add_src_harness")]
public void add_src_harness (owned Gst.Check.Harness src_harness, bool has_clock_wait);
[CCode (cname = "gst_harness_add_src_parse")]
public void add_src_parse (string launchline, bool has_clock_wait);
[CCode (cname = "gst_harness_buffers_in_queue")]
public uint buffers_in_queue ();
[CCode (cname = "gst_harness_buffers_received")]
public uint buffers_received ();
[CCode (cname = "gst_harness_crank_multiple_clock_waits")]
public bool crank_multiple_clock_waits (uint waits);
[CCode (cname = "gst_harness_crank_single_clock_wait")]
public bool crank_single_clock_wait ();
[CCode (cname = "gst_harness_create_buffer")]
public Gst.Buffer create_buffer (size_t size);
[CCode (cname = "gst_harness_dump_to_file")]
public void dump_to_file (string filename);
[CCode (cname = "gst_harness_events_in_queue")]
public uint events_in_queue ();
[CCode (cname = "gst_harness_events_received")]
public uint events_received ();
[CCode (cname = "gst_harness_find_element")]
public Gst.Element? find_element (string element_name);
[CCode (cname = "gst_harness_get_allocator")]
public void get_allocator (out unowned Gst.Allocator allocator, out Gst.AllocationParams @params);
[CCode (cname = "gst_harness_get_last_pushed_timestamp")]
public Gst.ClockTime get_last_pushed_timestamp ();
[CCode (cname = "gst_harness_get_testclock")]
public Gst.Check.TestClock get_testclock ();
[CCode (cname = "gst_harness_play")]
public void play ();
[CCode (cname = "gst_harness_pull")]
public Gst.Buffer pull ();
[CCode (cname = "gst_harness_pull_event")]
public Gst.Event pull_event ();
[CCode (cname = "gst_harness_pull_upstream_event")]
public Gst.Event pull_upstream_event ();
[CCode (cname = "gst_harness_push")]
public Gst.FlowReturn push (Gst.Buffer buffer);
[CCode (cname = "gst_harness_push_and_pull")]
public Gst.Buffer push_and_pull (Gst.Buffer buffer);
[CCode (cname = "gst_harness_push_event")]
public bool push_event (Gst.Event event);
[CCode (cname = "gst_harness_push_from_src")]
public Gst.FlowReturn push_from_src ();
[CCode (cname = "gst_harness_push_to_sink")]
public Gst.FlowReturn push_to_sink ();
[CCode (cname = "gst_harness_push_upstream_event")]
public bool push_upstream_event (Gst.Event event);
[CCode (cname = "gst_harness_query_latency")]
public Gst.ClockTime query_latency ();
[CCode (cname = "gst_harness_set_blocking_push_mode")]
public void set_blocking_push_mode ();
[CCode (cname = "gst_harness_set_caps")]
public void set_caps (owned Gst.Caps @in, owned Gst.Caps @out);
[CCode (cname = "gst_harness_set_caps_str")]
public void set_caps_str (string @in, string @out);
[CCode (cname = "gst_harness_set_drop_buffers")]
public void set_drop_buffers (bool drop_buffers);
[CCode (cname = "gst_harness_set_forwarding")]
public void set_forwarding (bool forwarding);
[CCode (cname = "gst_harness_set_propose_allocator")]
public void set_propose_allocator (owned Gst.Allocator? allocator, Gst.AllocationParams? @params);
[CCode (cname = "gst_harness_set_sink_caps")]
public void set_sink_caps (owned Gst.Caps caps);
[CCode (cname = "gst_harness_set_sink_caps_str")]
public void set_sink_caps_str (string str);
[CCode (cname = "gst_harness_set_src_caps")]
public void set_src_caps (owned Gst.Caps caps);
[CCode (cname = "gst_harness_set_src_caps_str")]
public void set_src_caps_str (string str);
[CCode (cname = "gst_harness_set_time")]
public bool set_time (Gst.ClockTime time);
[CCode (cname = "gst_harness_set_upstream_latency")]
public void set_upstream_latency (Gst.ClockTime latency);
[CCode (cname = "gst_harness_sink_push_many")]
public Gst.FlowReturn sink_push_many (int pushes);
[CCode (cname = "gst_harness_src_crank_and_push_many")]
public Gst.FlowReturn src_crank_and_push_many (int cranks, int pushes);
[CCode (cname = "gst_harness_src_push_event")]
public bool src_push_event ();
[CCode (cname = "gst_harness_teardown")]
public void teardown ();
[CCode (cname = "gst_harness_try_pull")]
public Gst.Buffer try_pull ();
[CCode (cname = "gst_harness_try_pull_event")]
public Gst.Event try_pull_event ();
[CCode (cname = "gst_harness_try_pull_upstream_event")]
public Gst.Event try_pull_upstream_event ();
[CCode (cname = "gst_harness_upstream_events_in_queue")]
public uint upstream_events_in_queue ();
[CCode (cname = "gst_harness_upstream_events_received")]
public uint upstream_events_received ();
[CCode (cname = "gst_harness_use_systemclock")]
public void use_systemclock ();
[CCode (cname = "gst_harness_use_testclock")]
public void use_testclock ();
[CCode (cname = "gst_harness_wait_for_clock_id_waits")]
public bool wait_for_clock_id_waits (uint waits, uint timeout);
}
[CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessPrepareBufferFunc", has_target = false)]
public delegate Gst.Buffer HarnessPrepareBufferFunc (Gst.Check.Harness h, void* data);
[CCode (cheader_filename = "gst/check/check.h")]
public static void abi_list (Gst.Check.ABIStruct list, bool have_abi_sizes);
[CCode (cheader_filename = "gst/check/check.h")]
......@@ -62,11 +188,15 @@ namespace Gst {
public static void element_push_buffer (string element_name, Gst.Buffer buffer_in, Gst.Caps caps_in, Gst.Buffer buffer_out, Gst.Caps caps_out);
[CCode (cheader_filename = "gst/check/check.h")]
public static void element_push_buffer_list (string element_name, owned GLib.List<Gst.Buffer> buffer_in, Gst.Caps caps_in, owned GLib.List<Gst.Buffer> buffer_out, Gst.Caps caps_out, Gst.FlowReturn last_flow_return);
[CCode (cheader_filename = "gst/check/check.h", cname = "gst_harness_stress_thread_stop")]
public static uint harness_stress_thread_stop (Gst.Check.HarnessThread t);
[CCode (cheader_filename = "gst/check/check.h")]
public static void init (int argc, string argv);
[CCode (cheader_filename = "gst/check/check.h")]
public static void message_error (Gst.Message message, Gst.MessageType type, GLib.Quark domain, int code);
[CCode (cheader_filename = "gst/check/check.h")]
public static void object_destroyed_on_unref (void* object_to_unref);
[CCode (cheader_filename = "gst/check/check.h")]
public static Gst.Element setup_element (string factory);
[CCode (cheader_filename = "gst/check/check.h")]
public static void setup_events (Gst.Pad srcpad, Gst.Element element, Gst.Caps? caps, Gst.Format format);
......
......@@ -17,11 +17,30 @@ namespace Gst {
[NoAccessorMethod]
public Gst.ControlSource control_source_r { owned get; set construct; }
}
[CCode (cheader_filename = "gst/controller/controller.h", cname = "GstControlPoint", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_control_point_", type_id = "gst_control_point_get_type ()")]
[Compact]
[GIR (name = "ControlPoint")]
public class ControlPoint {
[CCode (cname = "cache.cubic.h")]
public double cache_cubic_h;
[CCode (cname = "cache.cubic.z")]
public double cache_cubic_z;
public Gst.ClockTime timestamp;
public double value;
}
[CCode (cheader_filename = "gst/controller/controller.h", cname = "GstDirectControlBinding", lower_case_cprefix = "gst_direct_control_binding_", type_id = "gst_direct_control_binding_get_type ()")]
[GIR (name = "DirectControlBinding")]
public class DirectControlBinding : Gst.ControlBinding {
[CCode (array_length = false, array_null_terminated = true, cname = "ABI._gst_reserved")]
public weak void*[] ABI__gst_reserved;
[CCode (cname = "ABI.abi.want_absolute")]
public bool ABI_abi_want_absolute;
[CCode (has_construct_function = false, type = "GstControlBinding*")]
public DirectControlBinding (Gst.Object object, string property_name, Gst.ControlSource cs);
[CCode (cname = "gst_direct_control_binding_new_absolute", has_construct_function = false, type = "GstControlBinding*")]
public DirectControlBinding..new_with_absolute (Gst.Object object, string property_name, Gst.ControlSource cs);
[NoAccessorMethod]
public bool absolute { get; construct; }
[NoAccessorMethod]
public Gst.ControlSource control_source { owned get; set construct; }
}
......@@ -65,6 +84,9 @@ namespace Gst {
public bool set_from_list (GLib.SList<Gst.TimedValue?> timedvalues);
public bool unset (Gst.ClockTime timestamp);
public void unset_all ();
public signal void value_added (Gst.Controller.ControlPoint timed_value);
public signal void value_changed (Gst.Controller.ControlPoint timed_value);
public signal void value_removed (Gst.Controller.ControlPoint timed_value);
}
[CCode (cheader_filename = "gst/controller/controller.h", cname = "GstTriggerControlSource", lower_case_cprefix = "gst_trigger_control_source_", type_id = "gst_trigger_control_source_get_type ()")]
[GIR (name = "TriggerControlSource")]
......@@ -74,16 +96,6 @@ namespace Gst {
[NoAccessorMethod]
public int64 tolerance { get; set; }
}
[CCode (cheader_filename = "gst/controller/controller.h", cname = "GstControlPoint", has_type_id = false)]
[GIR (name = "ControlPoint")]
public struct ControlPoint {
public Gst.ClockTime timestamp;
public double value;
[CCode (cname = "cache.cubic.h")]
public double cache_cubic_h;
[CCode (cname = "cache.cubic.z")]
public double cache_cubic_z;
}
[CCode (cheader_filename = "gst/controller/controller.h", cname = "GstInterpolationMode", cprefix = "GST_INTERPOLATION_MODE_", type_id = "gst_interpolation_mode_get_type ()")]
[GIR (name = "InterpolationMode")]
public enum InterpolationMode {
......
......@@ -9,12 +9,36 @@ namespace Gst {
[CCode (has_construct_function = false, type = "GstClock*")]
public ClientClock (string name, string remote_address, int remote_port, Gst.ClockTime base_time);
[NoAccessorMethod]
public string address { owned get; set; }
public string address { owned get; set construct; }
[NoAccessorMethod]
public int port { get; set; }
public uint64 base_time { get; construct; }
[NoAccessorMethod]
public Gst.Bus bus { owned get; set; }
[NoAccessorMethod]
public Gst.Clock internal_clock { owned get; }
[NoAccessorMethod]
public uint64 minimum_update_interval { get; set; }
[NoAccessorMethod]
public int port { get; set construct; }
[NoAccessorMethod]
public uint64 round_trip_limit { get; set; }