[vala] vapi: Update GIR-based bindings



commit da1ab33404d957e028fa117239dabfca725811c0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Jan 17 13:23:15 2017 +0100

    vapi: Update GIR-based bindings

 vapi/gdk-3.0.vapi               |    2 ++
 vapi/geocode-glib-1.0.vapi      |   31 +++++++++++++++++++++++++++++--
 vapi/gstreamer-pbutils-1.0.vapi |    2 +-
 vapi/gstreamer-video-1.0.vapi   |   23 +++++++++++++++++++++++
 vapi/libgdata.vapi              |   14 +++++++-------
 5 files changed, 62 insertions(+), 10 deletions(-)
---
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index b3984f2..33c8e5d 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -5797,7 +5797,9 @@ namespace Gdk {
                public void move_region (Cairo.Region region, int dx, int dy);
                public void move_resize (int x, int y, int width, int height);
                public unowned GLib.List<Gdk.Window> peek_children ();
+               [Version (deprecated = true, deprecated_since = "3.22")]
                public static void process_all_updates ();
+               [Version (deprecated = true, deprecated_since = "3.22")]
                public void process_updates (bool update_children);
                public void raise ();
                public void register_dnd ();
diff --git a/vapi/geocode-glib-1.0.vapi b/vapi/geocode-glib-1.0.vapi
index 6ec1c79..33e3b55 100644
--- a/vapi/geocode-glib-1.0.vapi
+++ b/vapi/geocode-glib-1.0.vapi
@@ -40,9 +40,11 @@ namespace Geocode {
                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 GLib.List<Geocode.Place> search () throws GLib.Error;
+               public async GLib.List<Geocode.Place> search_async (GLib.Cancellable? cancellable = null) 
throws GLib.Error;
                public void set_answer_count (uint count);
+               [Version (since = "3.23.1")]
+               public void set_backend (Geocode.Backend? backend);
                public void set_bounded (bool bounded);
                public void set_search_area (Geocode.BoundingBox box);
                public uint answer_count { get; set; }
@@ -78,6 +80,21 @@ namespace Geocode {
                public double longitude { get; set; }
                public uint64 timestamp { get; construct; }
        }
+       [CCode (cheader_filename = "geocode-glib/geocode-glib.h", type_id = "geocode_nominatim_get_type ()")]
+       [Version (since = "3.23.1")]
+       public class Nominatim : GLib.Object, Geocode.Backend {
+               [CCode (has_construct_function = false)]
+               public Nominatim (string base_url, string maintainer_email_address);
+               public static Geocode.Nominatim get_gnome ();
+               [NoWrapper]
+               public virtual string query (string uri, GLib.Cancellable? cancellable = null) throws 
GLib.Error;
+               [NoWrapper]
+               public virtual async string query_async (string uri, GLib.Cancellable? cancellable) throws 
GLib.Error;
+               [NoAccessorMethod]
+               public string base_url { owned get; construct; }
+               [NoAccessorMethod]
+               public string maintainer_email_address { owned get; construct; }
+       }
        [CCode (cheader_filename = "geocode-glib/geocode-glib.h", type_id = "geocode_place_get_type ()")]
        public class Place : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -148,6 +165,16 @@ namespace Geocode {
                public Reverse.for_location (Geocode.Location location);
                public Geocode.Place resolve () throws GLib.Error;
                public async Geocode.Place resolve_async (GLib.Cancellable? cancellable = null) throws 
GLib.Error;
+               [Version (since = "3.23.1")]
+               public void set_backend (Geocode.Backend? backend);
+       }
+       [CCode (cheader_filename = "geocode-glib/geocode-glib.h", type_cname = "GeocodeBackendInterface", 
type_id = "geocode_backend_get_type ()")]
+       [Version (since = "3.23.1")]
+       public interface Backend : GLib.Object {
+               public abstract GLib.List<Geocode.Place> forward_search (GLib.HashTable<string,GLib.Value?> 
@params, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public abstract async GLib.List<Geocode.Place> forward_search_async 
(GLib.HashTable<string,GLib.Value?> @params, GLib.Cancellable? cancellable) throws GLib.Error;
+               public abstract GLib.List<Geocode.Place> reverse_resolve (GLib.HashTable<string,GLib.Value?> 
@params, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public abstract async GLib.List<Geocode.Place> reverse_resolve_async 
(GLib.HashTable<string,GLib.Value?> @params, GLib.Cancellable? cancellable) throws GLib.Error;
        }
        [CCode (cheader_filename = "geocode-glib/geocode-glib.h", cprefix = "GEOCODE_LOCATION_CRS_", type_id 
= "geocode_location_crs_get_type ()")]
        public enum LocationCRS {
diff --git a/vapi/gstreamer-pbutils-1.0.vapi b/vapi/gstreamer-pbutils-1.0.vapi
index 861d0e7..9308073 100644
--- a/vapi/gstreamer-pbutils-1.0.vapi
+++ b/vapi/gstreamer-pbutils-1.0.vapi
@@ -204,7 +204,7 @@ namespace Gst {
                        public void set_format (Gst.Caps format);
                        public void set_name (string name);
                        public void set_presence (uint presence);
-                       public void set_preset (string preset);
+                       public void set_preset (string? preset);
                        public void set_preset_name (string preset_name);
                        public void set_restriction (owned Gst.Caps restriction);
                        [NoAccessorMethod]
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index 9429619..a113444 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -357,6 +357,8 @@ namespace Gst {
                        [CCode (has_construct_function = false)]
                        public TimeCode (uint fps_n, uint fps_d, GLib.DateTime latest_daily_jam, 
Gst.Video.TimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint field_count);
                        public void add_frames (int64 frames);
+                       [Version (since = "1.12")]
+                       public Gst.Video.TimeCode add_interval (Gst.Video.TimeCodeInterval tc_inter);
                        public void clear ();
                        public int compare (Gst.Video.TimeCode tc2);
                        public Gst.Video.TimeCode copy ();
@@ -364,6 +366,9 @@ namespace Gst {
                        public TimeCode.empty ();
                        public uint64 frames_since_daily_jam ();
                        public void free ();
+                       [CCode (has_construct_function = false)]
+                       [Version (since = "1.12")]
+                       public TimeCode.from_string (string tc_str);
                        public void increment_frame ();
                        public void init (uint fps_n, uint fps_d, GLib.DateTime latest_daily_jam, 
Gst.Video.TimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint field_count);
                        public bool is_valid ();
@@ -371,6 +376,24 @@ namespace Gst {
                        public GLib.DateTime to_date_time ();
                        public string to_string ();
                }
+               [CCode (cheader_filename = "gst/video/video.h", copy_function = "g_boxed_copy", free_function 
= "g_boxed_free", type_id = "gst_video_time_code_interval_get_type ()")]
+               [Compact]
+               [GIR (name = "VideoTimeCodeInterval")]
+               [Version (since = "1.12")]
+               public class TimeCodeInterval {
+                       public uint frames;
+                       public uint hours;
+                       public uint minutes;
+                       public uint seconds;
+                       [CCode (has_construct_function = false)]
+                       public TimeCodeInterval (uint hours, uint minutes, uint seconds, uint frames);
+                       public void clear ();
+                       public Gst.Video.TimeCodeInterval copy ();
+                       public void free ();
+                       [CCode (has_construct_function = false)]
+                       public TimeCodeInterval.from_string (string tc_inter_str);
+                       public void init (uint hours, uint minutes, uint seconds, uint frames);
+               }
                [CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalance", lower_case_cprefix 
= "gst_color_balance_", type_cname = "GstColorBalanceInterface", type_id = "gst_color_balance_get_type ()")]
                [GIR (name = "ColorBalance")]
                public interface ColorBalance : GLib.Object {
diff --git a/vapi/libgdata.vapi b/vapi/libgdata.vapi
index 8e33bb3..e38231a 100644
--- a/vapi/libgdata.vapi
+++ b/vapi/libgdata.vapi
@@ -933,8 +933,8 @@ namespace GData {
                [Version (since = "0.7.0")]
                public unowned string get_content_uri ();
                [Version (since = "0.2.0")]
-               public unowned string get_etag ();
-               public unowned string get_id ();
+               public unowned string? get_etag ();
+               public unowned string? get_id ();
                public int64 get_published ();
                [Version (since = "0.5.0")]
                public unowned string get_rights ();
@@ -1651,9 +1651,9 @@ namespace GData {
                [CCode (has_construct_function = false)]
                protected Generator ();
                [Version (since = "0.4.0")]
-               public unowned string get_name ();
+               public unowned string? get_name ();
                [Version (since = "0.4.0")]
-               public unowned string get_uri ();
+               public unowned string? get_uri ();
                [Version (since = "0.4.0")]
                public unowned string get_version ();
                [Version (since = "0.4.0")]
@@ -1676,13 +1676,13 @@ namespace GData {
                [CCode (has_construct_function = false)]
                public Link (string uri, string? relation_type);
                [Version (since = "0.4.0")]
-               public unowned string get_content_type ();
+               public unowned string? get_content_type ();
                [Version (since = "0.4.0")]
-               public unowned string get_language ();
+               public unowned string? get_language ();
                [Version (since = "0.4.0")]
                public int get_length ();
                [Version (since = "0.4.0")]
-               public unowned string get_relation_type ();
+               public unowned string? get_relation_type ();
                [Version (since = "0.4.0")]
                public unowned string get_title ();
                [Version (since = "0.4.0")]


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