[vala] bindings: Update GIR-based bindings



commit 49e67ef3ef0f4d9eadcdb6fe60c2d3df0d3601f1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Aug 17 11:35:50 2014 +0200

    bindings: Update GIR-based bindings

 vapi/gstreamer-1.0.vapi      |    2 +-
 vapi/gstreamer-base-1.0.vapi |   20 ++++++++++++++++++++
 vapi/gtksourceview-3.0.vapi  |   26 ++++++++++++--------------
 3 files changed, 33 insertions(+), 15 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 8735dd7..003d7ab 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -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);
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index 9a8d635..86cfdfe 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -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")]
diff --git a/vapi/gtksourceview-3.0.vapi b/vapi/gtksourceview-3.0.vapi
index a60eea0..9b66917 100644
--- a/vapi/gtksourceview-3.0.vapi
+++ b/vapi/gtksourceview-3.0.vapi
@@ -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; }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]