summaryrefslogtreecommitdiff
path: root/vapi/javascriptcoregtk-4.0.vapi
diff options
context:
space:
mode:
authorMichael James Gratton <mike@vee.net>2021-04-05 11:51:50 +1000
committerRico Tzschichholz <ricotz@ubuntu.com>2021-06-24 13:25:08 +0000
commit9d9f6401a712fa26c503db4630d8415121c34a57 (patch)
treeaa738c0e67f6d7afea040a281c37879b8c392867 /vapi/javascriptcoregtk-4.0.vapi
parent9a8fd34a8caecb222425041beeeb7de4cb98c0cd (diff)
downloadvala-9d9f6401a712fa26c503db4630d8415121c34a57.tar.gz
javascriptcoregtk-4.0: Fix JSC.Class.add_property() binding
Diffstat (limited to 'vapi/javascriptcoregtk-4.0.vapi')
-rw-r--r--vapi/javascriptcoregtk-4.0.vapi6
1 files changed, 5 insertions, 1 deletions
diff --git a/vapi/javascriptcoregtk-4.0.vapi b/vapi/javascriptcoregtk-4.0.vapi
index 0e79debcb..2ae2a78dc 100644
--- a/vapi/javascriptcoregtk-4.0.vapi
+++ b/vapi/javascriptcoregtk-4.0.vapi
@@ -221,7 +221,7 @@ namespace JSC {
public JSC.Value add_constructor (string? name, [CCode (delegate_target_pos = 2.33333, destroy_notify_pos = 2.66667, type = "GCallback")] owned JSC.ClassConstructorCb callback, GLib.Type return_type);
[CCode (cname = "jsc_class_add_method_variadic")]
public void add_method (string name, [CCode (delegate_target_pos = 2.33333, destroy_notify_pos = 2.66667, type = "GCallback")] owned JSC.ClassMethodCb callback, GLib.Type return_type);
- public void add_property (string name, GLib.Type property_type, [CCode (scope = "async")] GLib.Callback? getter, GLib.Callback? setter, void* user_data, GLib.DestroyNotify? destroy_notify);
+ public void add_property (string name, GLib.Type property_type, [CCode (delegate_target_pos = 4.33333, destroy_notify_pos = 4.66667, type = "GCallback")] owned JSC.ClassGetPropertyCb? getter, [CCode (delegate_target_pos = 4.33333, destroy_notify_pos = 4.66667, type = "GCallback")] owned JSC.ClassSetPropertyCb? setter);
public unowned string get_name ();
public unowned JSC.Class get_parent ();
[NoAccessorMethod]
@@ -391,12 +391,16 @@ namespace JSC {
public delegate bool ClassDeletePropertyFunction (JSC.Class jsc_class, JSC.Context context, void* instance, string name);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "jsc/jsc.h", has_target = false)]
public delegate string[]? ClassEnumeratePropertiesFunction (JSC.Class jsc_class, JSC.Context context, void* instance);
+ [CCode (cheader_filename = "jsc/jsc.h", cname = "GCallback", instance_pos = 1.9)]
+ public delegate T ClassGetPropertyCb<T> (JSC.Class instance);
[CCode (cheader_filename = "jsc/jsc.h", has_target = false)]
public delegate JSC.Value? ClassGetPropertyFunction (JSC.Class jsc_class, JSC.Context context, void* instance, string name);
[CCode (cheader_filename = "jsc/jsc.h", has_target = false)]
public delegate bool ClassHasPropertyFunction (JSC.Class jsc_class, JSC.Context context, void* instance, string name);
[CCode (cheader_filename = "jsc/jsc.h", cname = "GCallback", instance_pos = 2.9)]
public delegate T ClassMethodCb<T> (JSC.Class instance, GLib.GenericArray<JSC.Value> values);
+ [CCode (cheader_filename = "jsc/jsc.h", cname = "GCallback", instance_pos = 2.9)]
+ public delegate void ClassSetPropertyCb<T> (JSC.Class instance, T value);
[CCode (cheader_filename = "jsc/jsc.h", has_target = false)]
public delegate bool ClassSetPropertyFunction (JSC.Class jsc_class, JSC.Context context, void* instance, string name, JSC.Value value);
[CCode (cheader_filename = "jsc/jsc.h", instance_pos = 2.9)]