From: Jeremy Philippe Date: Sun, 1 Sep 2019 23:27:44 +0000 (+0200) Subject: glib-2.0: Add missing "DestroysInstance" attributes to Mutex/Locker API X-Git-Tag: 0.46.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99d0f6f971d4da61cc555869e9984225891a7de4;p=thirdparty%2Fvala.git glib-2.0: Add missing "DestroysInstance" attributes to Mutex/Locker API --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 307140778..b6ff0c2d7 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2082,16 +2082,17 @@ namespace GLib { [CCode (destroy_function = "g_rec_mutex_clear")] public struct RecMutex { public RecMutex (); - public void lock (); + public void @lock (); public bool trylock (); public void unlock (); } [Version (since = "2.60")] [Compact] - [CCode (destroy_function = "g_rec_mutex_locker_free")] + [CCode (free_function = "g_rec_mutex_locker_free")] public class RecMutexLocker { public RecMutexLocker (RecMutex rec_mutex); + [DestroysInstance] public void free (); } @@ -2109,17 +2110,19 @@ namespace GLib { [Version (since = "2.62")] [Compact] - [CCode (destroy_function = "g_rw_lock_reader_locker_free")] + [CCode (free_function = "g_rw_lock_reader_locker_free")] public class RWLockReaderLocker { public RWLockReaderLocker (RWLock rw_lock); + [DestroysInstance] public void free (); } [Version (since = "2.62")] [Compact] - [CCode (destroy_function = "g_rw_lock_writer_locker_free")] + [CCode (free_function = "g_rw_lock_writer_locker_free")] public class RWLockWriterLocker { public RWLockWriterLocker (RWLock rw_lock); + [DestroysInstance] public void free (); }