Commit 84f26835 authored by Evan Nemerson's avatar Evan Nemerson

Update GIR-based bindings.

parent 018816f4
......@@ -181,6 +181,7 @@ namespace Atk {
public void add (Atk.Relation relation);
public void add_relation_by_type (Atk.RelationType relationship, Atk.Object target);
public bool contains (Atk.RelationType relationship);
public bool contains_target (Atk.RelationType relationship, Atk.Object targe);
public int get_n_relations ();
public unowned Atk.Relation get_relation (int i);
public unowned Atk.Relation get_relation_by_type (Atk.RelationType relationship);
......
This diff is collapsed.
......@@ -5945,7 +5945,7 @@ namespace Gdk {
[CCode (cheader_filename = "gdk/gdk.h")]
public static void pre_parse_libgtk_only ();
[CCode (cheader_filename = "gdk/gdk.h")]
public static void property_change (Gdk.Window window, Gdk.Atom property, Gdk.Atom type, int format, Gdk.PropMode mode, [CCode (array_length_cname = "nelements", array_length_pos = 6.1, type = "guchar*")] uint8[] data);
public static void property_change (Gdk.Window window, Gdk.Atom property, Gdk.Atom type, int format, Gdk.PropMode mode, [CCode (array_length_cname = "nelements", array_length_pos = 6.1, type = "const guchar*")] uint8[] data);
[CCode (cheader_filename = "gdk/gdk.h")]
public static void property_delete (Gdk.Window window, Gdk.Atom property);
[CCode (cheader_filename = "gdk/gdk.h")]
......
......@@ -40,7 +40,7 @@ namespace Gdk {
[CCode (cname = "gdk_pixbuf_new_from_stream_at_scale_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
public async Pixbuf.from_stream_at_scale_async (GLib.InputStream stream, int width, int height, bool preserve_aspect_ratio, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false)]
public Pixbuf.from_xpm_data ([CCode (array_length = false, type = "char**")] string[] data);
public Pixbuf.from_xpm_data ([CCode (array_length = false, type = "const char**")] string[] data);
public int get_bits_per_sample ();
public size_t get_byte_length ();
public Gdk.Colorspace get_colorspace ();
......
......@@ -60,7 +60,7 @@ namespace GLib {
[CCode (cheader_filename = "gio/gio.h")]
public static GLib.Variant gvalue_to_gvariant (GLib.Value gvalue, GLib.VariantType type);
[CCode (cheader_filename = "gio/gio.h")]
public static void gvariant_to_gvalue (GLib.Variant value, GLib.Value out_gvalue);
public static GLib.Value gvariant_to_gvalue (GLib.Variant value);
[CCode (cheader_filename = "gio/gio.h")]
public static bool is_address (string string);
[CCode (cheader_filename = "gio/gio.h")]
......@@ -720,6 +720,7 @@ namespace GLib {
public void export (GLib.DBusObjectSkeleton object);
public void export_uniquely (GLib.DBusObjectSkeleton object);
public GLib.DBusConnection get_connection ();
public bool is_exported (GLib.DBusObjectSkeleton object);
public void set_connection (GLib.DBusConnection? connection);
public bool unexport (string object_path);
public GLib.DBusConnection connection { owned get; set; }
......@@ -1449,6 +1450,7 @@ namespace GLib {
[HasEmitter]
public virtual signal void reply (GLib.MountOperationResult result);
public virtual signal void show_processes (string message, GLib.Array<GLib.Pid> processes, [CCode (array_length = false, array_null_terminated = true)] string[] choices);
public virtual signal void show_unmount_progress (string message, uint64 time_left, uint64 bytes_left);
}
[CCode (cheader_filename = "gio/gio.h")]
public abstract class NativeVolumeMonitor : GLib.VolumeMonitor {
......@@ -2112,7 +2114,7 @@ namespace GLib {
public unowned string get_warning ();
public void set_description (string description);
public void set_flags (GLib.TlsPasswordFlags flags);
public void set_value ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gssize", type = "guchar*")] uint8[] value);
public void set_value ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gssize", type = "const guchar*")] uint8[] value);
[CCode (vfunc_name = "set_value")]
public virtual void set_value_full ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gssize", type = "guchar*")] owned uint8[] value, GLib.DestroyNotify? notify = GLib.free);
public void set_warning (string warning);
......@@ -2246,7 +2248,7 @@ namespace GLib {
[CCode (cheader_filename = "gio/gio.h", type_cname = "GActionMapInterface", type_id = "g_action_map_get_type ()")]
public interface ActionMap : GLib.ActionGroup, GLib.Object {
public abstract void add_action (GLib.Action action);
public void add_action_entries ([CCode (array_length_cname = "n_entries", array_length_pos = 1.5, type = "GActionEntry*")] GLib.ActionEntry[] entries, void* user_data);
public void add_action_entries ([CCode (array_length_cname = "n_entries", array_length_pos = 1.5, type = "const GActionEntry*")] GLib.ActionEntry[] entries, void* user_data);
public abstract unowned GLib.Action lookup_action (string action_name);
public abstract void remove_action (string action_name);
}
......@@ -2301,6 +2303,8 @@ namespace GLib {
public interface AsyncResult : GLib.Object {
public abstract GLib.Object get_source_object ();
public abstract void* get_user_data ();
public abstract bool is_tagged (void* tag);
public bool legacy_propagate_error () throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_get_type ()")]
public interface Converter : GLib.Object {
......
This diff is collapsed.
......@@ -48,6 +48,8 @@ namespace Peas {
public class ExtensionSet : GLib.Object {
[CCode (has_construct_function = false)]
public ExtensionSet (Peas.Engine engine, GLib.Type exten_type, ...);
[NoWrapper]
public virtual bool call (string method_name, GI.Argument args);
public void @foreach (Peas.ExtensionSetForeachFunc func);
public unowned Peas.Extension get_extension (Peas.PluginInfo info);
[CCode (has_construct_function = false)]
......
......@@ -91,7 +91,7 @@ namespace Soup {
public uint hash_by_name ();
public bool is_resolved ();
public void resolve_async (GLib.MainContext? async_context, GLib.Cancellable? cancellable, Soup.AddressCallback callback);
public uint resolve_sync (GLib.Cancellable? cancellable);
public uint resolve_sync (GLib.Cancellable? cancellable = null);
[NoAccessorMethod]
public Soup.AddressFamily family { get; construct; }
public string name { get; construct; }
......@@ -384,7 +384,7 @@ namespace Soup {
public void set_flags (Soup.MessageFlags flags);
public void set_http_version (Soup.HTTPVersion version);
public void set_redirect (uint status_code, string redirect_uri);
public void set_request (string content_type, Soup.MemoryUse req_use, [CCode (array_length_cname = "req_length", array_length_pos = 3.1, array_length_type = "gsize", type = "char*")] uint8[] req_body);
public void set_request (string content_type, Soup.MemoryUse req_use, [CCode (array_length_cname = "req_length", array_length_pos = 3.1, array_length_type = "gsize", type = "const char*")] uint8[] req_body);
public void set_response (string? content_type, Soup.MemoryUse resp_use, [CCode (array_length_cname = "resp_length", array_length_pos = 3.1, array_length_type = "gsize")] uint8[] resp_body);
public void set_status (uint status_code);
public void set_status_full (uint status_code, string reason_phrase);
......@@ -524,7 +524,7 @@ namespace Soup {
public virtual unowned string get_content_type ();
public unowned Soup.Session get_session ();
public unowned Soup.URI get_uri ();
public virtual GLib.InputStream send (GLib.Cancellable? cancellable) throws GLib.Error;
public virtual GLib.InputStream send (GLib.Cancellable? cancellable = null) throws GLib.Error;
public virtual async GLib.InputStream send_async (GLib.Cancellable? cancellable) throws GLib.Error;
public Soup.Session session { get; construct; }
public Soup.URI uri { get; construct; }
......@@ -681,7 +681,7 @@ namespace Soup {
[CCode (has_construct_function = false)]
public Socket (string optname1, ...);
public void connect_async (GLib.Cancellable? cancellable, Soup.SocketCallback callback);
public uint connect_sync (GLib.Cancellable? cancellable);
public uint connect_sync (GLib.Cancellable? cancellable = null);
public void disconnect ();
public int get_fd ();
public unowned Soup.Address get_local_address ();
......@@ -689,11 +689,11 @@ namespace Soup {
public bool is_connected ();
public bool is_ssl ();
public bool listen ();
public Soup.SocketIOStatus read ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gsize", type = "gpointer")] uint8[] buffer, out size_t nread, GLib.Cancellable? cancellable) throws GLib.Error;
public Soup.SocketIOStatus read_until ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gsize", type = "gpointer")] uint8[] buffer, void* boundary, size_t boundary_len, out size_t nread, bool got_boundary, GLib.Cancellable? cancellable) throws GLib.Error;
public bool start_proxy_ssl (string ssl_host, GLib.Cancellable? cancellable);
public bool start_ssl (GLib.Cancellable? cancellable);
public Soup.SocketIOStatus write ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gsize", type = "gconstpointer")] uint8[] buffer, out size_t nwrote, GLib.Cancellable? cancellable) throws GLib.Error;
public Soup.SocketIOStatus read ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gsize", type = "gpointer")] uint8[] buffer, out size_t nread, GLib.Cancellable? cancellable = null) throws GLib.Error;
public Soup.SocketIOStatus read_until ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gsize", type = "gpointer")] uint8[] buffer, void* boundary, size_t boundary_len, out size_t nread, bool got_boundary, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool start_proxy_ssl (string ssl_host, GLib.Cancellable? cancellable = null);
public bool start_ssl (GLib.Cancellable? cancellable = null);
public Soup.SocketIOStatus write ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gsize", type = "gconstpointer")] uint8[] buffer, out size_t nwrote, GLib.Cancellable? cancellable = null) throws GLib.Error;
[NoAccessorMethod]
public GLib.MainContext async_context { owned get; construct; }
public bool clean_dispose { construct; }
......@@ -994,6 +994,14 @@ namespace Soup {
HANDSHAKE_FAILED;
public static GLib.Quark quark ();
}
[CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_TLD_ERROR_")]
public errordomain TLDError {
INVALID_HOSTNAME,
IS_IP_ADDRESS,
NOT_ENOUGH_DOMAINS,
NO_BASE_DOMAIN;
public static GLib.Quark quark ();
}
[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
public delegate void AddressCallback (Soup.Address addr, uint status);
[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 4.9)]
......@@ -1370,6 +1378,10 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h")]
public static uint str_case_hash (void* key);
[CCode (cheader_filename = "libsoup/soup.h")]
public static bool tld_domain_is_public_suffix (string domain);
[CCode (cheader_filename = "libsoup/soup.h")]
public static unowned string tld_get_base_domain (string hostname) throws GLib.Error;
[CCode (cheader_filename = "libsoup/soup.h")]
public static void value_array_append (GLib.ValueArray array, GLib.Type type, ...);
[CCode (cheader_filename = "libsoup/soup.h")]
public static void value_array_append_vals (GLib.ValueArray array, ...);
......
......@@ -106,14 +106,22 @@ namespace Rest {
[NoAccessorMethod]
public bool disable_cookies { get; construct; }
[NoAccessorMethod]
public string password { owned get; construct; }
public string password { owned get; set; }
[NoAccessorMethod]
public bool ssl_strict { get; set; }
[NoAccessorMethod]
public string url_format { owned get; set; }
public string user_agent { get; set; }
[NoAccessorMethod]
public string username { owned get; construct; }
public string username { owned get; set; }
public virtual signal bool authenticate (Rest.ProxyAuth auth, bool retrying);
}
[CCode (cheader_filename = "rest/oauth-proxy-call.h,rest/oauth-proxy.h,rest/oauth2-proxy-call.h,rest/oauth2-proxy.h,rest/rest-enum-types.h,rest/rest-param.h,rest/rest-params.h,rest/rest-proxy-auth.h,rest/rest-proxy-call.h,rest/rest-proxy.h,rest/rest-xml-node.h,rest/rest-xml-parser.h", type_id = "rest_proxy_auth_get_type ()")]
public class ProxyAuth : GLib.Object {
[CCode (has_construct_function = false)]
protected ProxyAuth ();
public void pause ();
public void unpause ();
}
[CCode (cheader_filename = "rest/rest-proxy-call.h", type_id = "rest_proxy_call_get_type ()")]
public class ProxyCall : GLib.Object {
......
......@@ -112,7 +112,7 @@ namespace Vte {
public void set_visible_bell (bool is_visible);
public void set_word_chars (string spec);
public void watch_child (GLib.Pid child_pid);
public bool write_contents (GLib.OutputStream stream, Vte.TerminalWriteFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public bool write_contents (GLib.OutputStream stream, Vte.TerminalWriteFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool allow_bold { get; set; }
public bool audible_bell { get; set; }
[NoAccessorMethod]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment