diff options
Diffstat (limited to 'vapi')
-rw-r--r-- | vapi/gio-2.0.vapi | 31 | ||||
-rw-r--r-- | vapi/glib-2.0.vapi | 5 | ||||
-rw-r--r-- | vapi/gobject-2.0.vapi | 34 |
3 files changed, 67 insertions, 3 deletions
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 384d4d5a5..17fde2ebe 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -1205,6 +1205,15 @@ namespace GLib { [CCode (cname = "g_source_set_callback")] public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.DatagramBasedSourceFunc func); } + [CCode (cheader_filename = "gio/gio.h", type_id = "g_debug_controller_dbus_get_type ()")] + [Version (since = "2.72")] + public class DebugControllerDBus : GLib.Object, GLib.DebugController, GLib.Initable { + [CCode (has_construct_function = false)] + public DebugControllerDBus (GLib.DBusConnection connection, GLib.Cancellable? cancellable = null) throws GLib.Error; + [NoAccessorMethod] + public GLib.DBusConnection connection { owned get; construct; } + public virtual signal bool authorize (GLib.DBusMethodInvocation invocation); + } [CCode (cheader_filename = "gio/gio.h", type_id = "g_emblem_get_type ()")] public class Emblem : GLib.Object, GLib.Icon { [CCode (has_construct_function = false)] @@ -1490,6 +1499,9 @@ namespace GLib { [CCode (cheader_filename = "gio/gio.h", has_type_id = false)] [Compact] public class IOExtensionPoint { + [CCode (cheader_filename = "gio/gio.h", cname = "G_DEBUG_CONTROLLER_EXTENSION_POINT_NAME")] + [Version (since = "2.72")] + public const string DEBUG_CONTROLLER; [CCode (cheader_filename = "gio/gio.h", cname = "G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME")] [Version (deprecated = true, deprecated_since = "2.28")] public const string DESKTOP_APP_INFO_LOOKUP; @@ -3094,7 +3106,7 @@ namespace GLib { public TlsCertificate.from_pkcs11_uris (string pkcs11_uri, string? private_key_pkcs11_uri) throws GLib.Error; [CCode (has_construct_function = false)] [Version (since = "2.72")] - public TlsCertificate.from_pkcs12 ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize", type = "const guint8*")] uint8[] data, string? password) throws GLib.Error; + public TlsCertificate.from_pkcs12 ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] data, string? password) throws GLib.Error; [Version (since = "2.70")] public GLib.GenericArray<weak GLib.Bytes>? get_dns_names (); [Version (since = "2.70")] @@ -3596,6 +3608,15 @@ namespace GLib { public 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 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_cname = "GDebugControllerInterface", type_id = "g_debug_controller_get_type ()")] + [Version (since = "2.72")] + public interface DebugController : GLib.Initable, GLib.Object { + public static GLib.DebugController dup_default (); + public bool get_debug_enabled (); + public void set_debug_enabled (bool debug_enabled); + [ConcreteAccessor] + public abstract bool debug_enabled { get; set; } + } [CCode (cheader_filename = "gio/gio.h", type_id = "g_drive_get_type ()")] public interface Drive : GLib.Object { public abstract bool can_eject (); @@ -3843,7 +3864,7 @@ namespace GLib { public abstract GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; [Version (since = "2.22")] public virtual async GLib.FileIOStream replace_readwrite_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error; - public abstract GLib.File? resolve_relative_path (string relative_path); + public abstract GLib.File resolve_relative_path (string relative_path); public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; @@ -4322,7 +4343,8 @@ namespace GLib { OPENBSD_SOCKPEERCRED, SOLARIS_UCRED, NETBSD_UNPCBID, - APPLE_XUCRED + APPLE_XUCRED, + WIN32_PID } [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CALL_FLAGS_", type_id = "g_dbus_call_flags_get_type ()")] [Flags] @@ -5158,6 +5180,9 @@ namespace GLib { [Version (replacement = "Action.print_detailed_name", since = "2.38")] public static string action_print_detailed_name (string action_name, GLib.Variant? target_value); [CCode (cheader_filename = "gio/gio.h")] + [Version (replacement = "DebugController.dup_default", since = "2.72")] + public static GLib.DebugController debug_controller_dup_default (); + [CCode (cheader_filename = "gio/gio.h")] [Version (replacement = "DtlsClientConnection.new", since = "2.48")] public static GLib.DtlsClientConnection dtls_client_connection_new (GLib.DatagramBased base_socket, GLib.SocketConnectable? server_identity) throws GLib.Error; [CCode (cheader_filename = "gio/gio.h")] diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 2cbb8ea84..4a9b2cc6e 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2888,6 +2888,11 @@ namespace GLib { [Version (since = "2.50")] [CCode (delegate_target = false)] public static LogWriterFunc writer_default; + + [Version (since = "2.72")] + public static bool get_debug_enabled (); + [Version (since = "2.72")] + public static void set_debug_enabled (bool enabled); } [CCode (has_type_id = false)] diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi index 77b256455..8701a95e5 100644 --- a/vapi/gobject-2.0.vapi +++ b/vapi/gobject-2.0.vapi @@ -76,6 +76,19 @@ namespace GLib { public GLib.Object target { get; construct; } public string target_property { get; construct; } } + [CCode (cheader_filename = "glib-object.h", type_id = "G_TYPE_BINDING_GROUP")] + [Version (since = "2.72")] + public class BindingGroup : GLib.Object { + [CCode (has_construct_function = false)] + public BindingGroup (); + public void bind (string source_property, GLib.Object target, string target_property, GLib.BindingFlags flags); + [CCode (cname = "g_binding_group_bind_with_closures")] + public void bind_property (string source_property, GLib.Object target, string target_property, GLib.BindingFlags flags, [CCode (type = "GClosure*")] owned GLib.BindingTransformFunc? transform_to = null, [CCode (type = "GClosure*")] owned GLib.BindingTransformFunc? transform_from = null); + public unowned GLib.Object? dup_source (); + public void set_source (GLib.Object? source); + [NoAccessorMethod] + public GLib.Object source { owned get; set; } + } [CCode (cheader_filename = "glib-object.h", ref_function = "g_closure_ref", type_id = "G_TYPE_CLOSURE", unref_function = "g_closure_unref")] [Compact] public class Closure { @@ -461,6 +474,27 @@ namespace GLib { [CCode (cname = "g_param_spec_variant", has_construct_function = false, type = "GParamSpec*")] public ParamSpecVariant (string name, string nick, string blurb, GLib.VariantType type, GLib.Variant? default_value, GLib.ParamFlags flags); } + [CCode (cheader_filename = "glib-object.h", type_id = "G_TYPE_SIGNAL_GROUP")] + [Version (since = "2.72")] + public class SignalGroup : GLib.Object { + [CCode (has_construct_function = false)] + public SignalGroup (GLib.Type target_type); + public void block (); + public void connect (string detailed_signal, GLib.Callback c_handler, void* data); + public void connect_after (string detailed_signal, GLib.Callback c_handler, void* data); + public void connect_data (string detailed_signal, GLib.Callback c_handler, void* data, GLib.ClosureNotify notify, GLib.ConnectFlags flags); + public void connect_object (string detailed_signal, GLib.Callback c_handler, void* object, GLib.ConnectFlags flags); + public void connect_swapped (string detailed_signal, GLib.Callback c_handler, void* data); + public GLib.Object? dup_target (); + public void set_target (GLib.Object? target); + public void unblock (); + [NoAccessorMethod] + public GLib.Object target { owned get; set; } + [NoAccessorMethod] + public GLib.Type target_type { get; construct; } + public signal void bind (GLib.Object instance); + public signal void unbind (); + } [CCode (cheader_filename = "glib-object.h", free_function = "g_type_class_unref", lower_case_csuffix = "type_class")] [Compact] public class TypeClass { |