summaryrefslogtreecommitdiff
path: root/vapi/glib-2.0.vapi
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-11-09 13:59:35 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2020-12-30 15:34:32 +0100
commit72d641014cfc470a35d8a8722e19301730d41c98 (patch)
tree3f2fa0b6cbc04789c1db24e298104016c0fbc523 /vapi/glib-2.0.vapi
parent189c9093115802bb3b6170f280393076660d0097 (diff)
downloadvala-72d641014cfc470a35d8a8722e19301730d41c98.tar.gz
glib-2.0: Make PtrArray a subclass of GenericArray
Diffstat (limited to 'vapi/glib-2.0.vapi')
-rw-r--r--vapi/glib-2.0.vapi21
1 files changed, 2 insertions, 19 deletions
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 4a1c95784..a51bca9c1 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -5414,33 +5414,16 @@ namespace GLib {
/* Pointer Arrays */
[Compact]
- [Version (since = "2.22", deprecated_since = "vala-0.26", replacement="GenericArray")]
+ [Version (since = "2.22")]
[CCode (ref_function = "g_ptr_array_ref", unref_function = "g_ptr_array_unref", type_id = "G_TYPE_PTR_ARRAY")]
- public class PtrArray {
+ public class PtrArray : GenericArray<void*> {
public PtrArray ();
[Version (since = "2.22")]
public PtrArray.with_free_func (GLib.DestroyNotify? element_free_func);
[CCode (cname = "g_ptr_array_sized_new")]
public PtrArray.sized (uint reserved_size);
- public void add (void* data);
- [Version (since = "2.4")]
- public void foreach (GLib.Func<void*> func);
- [CCode (cname = "g_ptr_array_index")]
- public void* index(uint index);
- public bool remove (void* data);
- public void* remove_index (uint index);
- public bool remove_fast (void *data);
- public void remove_index_fast (uint index);
- [Version (since = "2.4")]
- public void remove_range (uint index, uint length);
- public void sort (CompareFunc<void**> compare_func);
- public void sort_with_data (CompareDataFunc<void**> compare_func);
[Version (since = "2.22")]
public void set_free_func (GLib.DestroyNotify? element_free_function);
- public void set_size (int length);
-
- public uint len;
- public void** pdata;
}
[CCode (cname = "GEqualFunc", has_target = false)]