]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
bindings: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 17 Aug 2014 09:35:50 +0000 (11:35 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 17 Aug 2014 09:35:50 +0000 (11:35 +0200)
vapi/gstreamer-1.0.vapi
vapi/gstreamer-base-1.0.vapi
vapi/gtksourceview-3.0.vapi

index 8735dd7583874e208f2297b37d534a69df7af3a1..003d7abeadf927c0bf838978612e5d88a8d1e470 100644 (file)
@@ -539,7 +539,7 @@ namespace Gst {
                public Gst.Clock provided_clock;
                public bool state_dirty;
                [CCode (has_construct_function = false, returns_floating_reference = true, type = "GstElement*")]
-               public Bin (string name);
+               public Bin (string? name);
                public bool add (owned Gst.Element element);
                [NoWrapper]
                public virtual bool add_element (Gst.Element element);
index 9a8d635bc41fff89331e714f0fab093c4cd3e93f..86cfdfe0949bddb4fb3f2602767b2569151fbca5 100644 (file)
@@ -320,6 +320,22 @@ namespace Gst {
                        public void stop ();
                        public Gst.Buffer take_buffer (Gst.Base.CollectData data, uint size);
                }
+               [CCode (cheader_filename = "gst/base/base.h", cname = "GstDataQueue", lower_case_cprefix = "gst_data_queue_", type_id = "gst_data_queue_get_type ()")]
+               [GIR (name = "DataQueue")]
+               public class DataQueue : GLib.Object {
+                       [CCode (has_construct_function = false)]
+                       protected DataQueue ();
+                       [NoWrapper]
+                       public virtual void empty ();
+                       [NoWrapper]
+                       public virtual void full ();
+                       [NoAccessorMethod]
+                       public uint current_level_bytes { get; }
+                       [NoAccessorMethod]
+                       public uint64 current_level_time { get; }
+                       [NoAccessorMethod]
+                       public uint current_level_visible { get; }
+               }
                [CCode (cheader_filename = "gst/base/base.h", cname = "GstFlowCombiner", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_flow_combiner_", type_id = "gst_flow_combiner_get_type ()")]
                [Compact]
                [GIR (name = "FlowCombiner")]
@@ -701,6 +717,10 @@ namespace Gst {
                public delegate Gst.FlowReturn CollectPadsFunction (Gst.Base.CollectPads pads);
                [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsQueryFunction", instance_pos = 3.9)]
                public delegate bool CollectPadsQueryFunction (Gst.Base.CollectPads pads, Gst.Base.CollectData pad, Gst.Query query);
+               [CCode (cheader_filename = "gst/base/base.h", cname = "GstDataQueueEmptyCallback", has_target = false)]
+               public delegate void DataQueueEmptyCallback (Gst.Base.DataQueue queue, void* checkdata);
+               [CCode (cheader_filename = "gst/base/base.h", cname = "GstDataQueueFullCallback", has_target = false)]
+               public delegate void DataQueueFullCallback (Gst.Base.DataQueue queue, void* checkdata);
                [CCode (cheader_filename = "gst/base/base.h", cname = "GstTypeFindHelperGetRangeFunction", has_target = false)]
                public delegate Gst.FlowReturn TypeFindHelperGetRangeFunction (Gst.Object obj, Gst.Object? parent, uint64 offset, uint length, Gst.Buffer buffer);
                [CCode (cheader_filename = "gst/base/base.h", cname = "GST_BASE_PARSE_FLAG_DRAINING")]
index a60eea08db8201ee628184b2cc308492956544fd..9b669178145c570b343bdefcb1c3276219fd0fdb 100644 (file)
@@ -30,7 +30,7 @@ namespace Gtk {
                public GLib.SList<weak Gtk.SourceMark> get_source_marks_at_iter (Gtk.TextIter iter, string? category);
                public GLib.SList<weak Gtk.SourceMark> get_source_marks_at_line (int line, string? category);
                public unowned Gtk.SourceStyleScheme get_style_scheme ();
-               public unowned Gtk.SourceUndoManager get_undo_manager ();
+               public unowned Gtk.SourceUndoManager? get_undo_manager ();
                public bool iter_backward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
                public bool iter_forward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
                public bool iter_has_context_class (Gtk.TextIter iter, string context_class);
@@ -188,10 +188,8 @@ namespace Gtk {
                public Gtk.SourceEncoding copy ();
                [CCode (cname = "gtk_source_encoding_get_current")]
                public static unowned Gtk.SourceEncoding et_current ();
-               [CCode (cname = "gtk_source_encoding_get_default_candidates")]
-               public static GLib.SList<weak Gtk.SourceEncoding> et_default_candidates ();
                [CCode (cname = "gtk_source_encoding_get_from_charset")]
-               public static unowned Gtk.SourceEncoding et_from_charset (string charset);
+               public static unowned Gtk.SourceEncoding? et_from_charset (string charset);
                [CCode (cname = "gtk_source_encoding_get_utf8")]
                public static unowned Gtk.SourceEncoding et_utf8 ();
                public void free ();
@@ -409,12 +407,12 @@ namespace Gtk {
                [CCode (has_construct_function = false)]
                public SourceLanguageManager ();
                public static unowned Gtk.SourceLanguageManager get_default ();
-               public unowned Gtk.SourceLanguage get_language (string id);
+               public unowned Gtk.SourceLanguage? get_language (string id);
                [CCode (array_length = false, array_null_terminated = true)]
-               public unowned string[] get_language_ids ();
+               public unowned string[]? get_language_ids ();
                [CCode (array_length = false, array_null_terminated = true)]
                public unowned string[] get_search_path ();
-               public unowned Gtk.SourceLanguage guess_language (string? filename, string? content_type);
+               public unowned Gtk.SourceLanguage? guess_language (string? filename, string? content_type);
                public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? dirs);
                [CCode (array_length = false, array_null_terminated = true)]
                public string[] language_ids { get; }
@@ -427,8 +425,8 @@ namespace Gtk {
                [CCode (has_construct_function = false)]
                public SourceMark (string name, string category);
                public unowned string get_category ();
-               public unowned Gtk.SourceMark next (string? category);
-               public unowned Gtk.SourceMark prev (string category);
+               public unowned Gtk.SourceMark? next (string? category);
+               public unowned Gtk.SourceMark? prev (string category);
                public string category { get; construct; }
        }
        [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_mark_attributes_get_type ()")]
@@ -549,7 +547,7 @@ namespace Gtk {
                public bool get_at_word_boundaries ();
                public bool get_case_sensitive ();
                public bool get_regex_enabled ();
-               public unowned string get_search_text ();
+               public unowned string? get_search_text ();
                public bool get_wrap_around ();
                public void set_at_word_boundaries (bool at_word_boundaries);
                public void set_case_sensitive (bool case_sensitive);
@@ -607,12 +605,12 @@ namespace Gtk {
                [CCode (has_construct_function = false)]
                protected SourceStyleScheme ();
                [CCode (array_length = false, array_null_terminated = true)]
-               public unowned string[] get_authors ();
-               public unowned string get_description ();
-               public unowned string get_filename ();
+               public unowned string[]? get_authors ();
+               public unowned string? get_description ();
+               public unowned string? get_filename ();
                public unowned string get_id ();
                public unowned string get_name ();
-               public unowned Gtk.SourceStyle get_style (string style_id);
+               public unowned Gtk.SourceStyle? get_style (string style_id);
                public string description { get; }
                public string filename { get; }
                public string id { get; construct; }