[vala] gio-2.0: Fix ownership of several callbacks
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gio-2.0: Fix ownership of several callbacks
- Date: Sat, 30 Oct 2010 18:02:04 +0000 (UTC)
commit 2660a38d2e45927896431b76157c1dbe936d9e76
Author: Evan Nemerson <evan coeus-group com>
Date: Sat Oct 30 10:44:49 2010 -0700
gio-2.0: Fix ownership of several callbacks
vapi/gio-2.0.vapi | 12 ++++++------
vapi/packages/gio-2.0/gio-2.0.metadata | 12 ++++++++++++
2 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 8555995..7a7c307 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -241,7 +241,7 @@ namespace GLib {
public class DBusConnection : GLib.Object, GLib.Initable, GLib.AsyncInitable {
[CCode (type = "void", has_construct_function = false)]
public async DBusConnection (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
- public uint add_filter (GLib.DBusMessageFilterFunction filter_function, GLib.DestroyNotify user_data_free_func);
+ public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
public async GLib.Variant call (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.Variant call_sync (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
@@ -839,8 +839,8 @@ namespace GLib {
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOSchedulerJob {
- public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify? notify);
- public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify? notify);
+ public bool send_to_mainloop (owned GLib.SourceFunc func);
+ public void send_to_mainloop_async (owned GLib.SourceFunc func);
}
[CCode (cheader_filename = "gio/gio.h")]
public class IOStream : GLib.Object {
@@ -1057,9 +1057,9 @@ namespace GLib {
public class Periodic : GLib.Object {
[CCode (has_construct_function = false)]
public Periodic (uint hz, int priority);
- public uint add (GLib.PeriodicTickFunc callback, GLib.DestroyNotify notify);
+ public uint add (owned GLib.PeriodicTickFunc callback);
public void block ();
- public void damaged (GLib.PeriodicRepairFunc callback, GLib.DestroyNotify notify);
+ public void damaged (owned GLib.PeriodicRepairFunc callback);
public uint get_hz ();
public int get_priority ();
public void remove (uint tag);
@@ -2617,7 +2617,7 @@ namespace GLib {
[CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
public static void g_io_scheduler_cancel_all_jobs ();
[CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
- public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify? notify, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
+ public static void g_io_scheduler_push_job (owned GLib.IOSchedulerJobFunc job_func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
[CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
[CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 1dcff3e..80f8a13 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -52,6 +52,8 @@ g_data_output_stream_put_* error_types="IOError"
GDBusAnnotationInfo.annotations is_array="1"
g_dbus_address_get_stream async="1"
GDBusArgInfo.annotations is_array="1"
+g_dbus_connection_add_filter.filter_function transfer_ownership="1"
+g_dbus_connection_add_filter.user_data_free_func hidden="1"
g_dbus_connection_call async="1"
g_dbus_connection_call.parameters nullable="1"
g_dbus_connection_call_finish transfer_ownership="1"
@@ -189,6 +191,12 @@ GInputVector.size hidden="1"
GIOErrorEnum rename_to="IOError" errordomain="1"
g_io_extension_point_get_extensions type_arguments="IOExtension"
g_io_modules_load_all_in_directory type_arguments="unowned TypeModule" transfer_ownership="1"
+g_io_scheduler_job_send_to_mainloop.func transfer_ownership="1"
+g_io_scheduler_job_send_to_mainloop.notify hidden="1"
+g_io_scheduler_job_send_to_mainloop_async.func transfer_ownership="1"
+g_io_scheduler_job_send_to_mainloop_async.notify hidden="1"
+g_io_scheduler_push_job.job_func transfer_ownership="1"
+g_io_scheduler_push_job.notify hidden="1"
g_loadable_icon_load_async.cancellable nullable="1"
g_memory_input_stream_*_data.data type_name="uint8" is_array="1" transfer_ownership="1" array_length_type="gsize"
g_memory_input_stream_*_data.len hidden="1"
@@ -216,6 +224,10 @@ g_output_stream_write_all.bytes_written is_out="1"
g_output_stream_write_finish error_types="IOError"
GOutputVector.buffer type_name="uint8" is_array="1" weak="0" array_length_type="gsize" array_length_cname="size"
GOutputVector.size hidden="1"
+g_periodic_add.callback transfer_ownership="1"
+g_periodic_add.notify hidden="1"
+g_periodic_damaged.callback transfer_ownership="1"
+g_periodic_damaged.notify hidden="1"
g_resolver_free_addresses hidden="1"
g_resolver_free_targets hidden="1"
g_resolver_lookup_by_name transfer_ownership="1" type_arguments="InetAddress"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]