[vala/mjog/jsc_object_add_property] WIP: vapi/javascriptcoregtk-4.0.vapi: Fix JSC.Class.add_property binding
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/mjog/jsc_object_add_property] WIP: vapi/javascriptcoregtk-4.0.vapi: Fix JSC.Class.add_property binding
- Date: Mon, 5 Apr 2021 01:53:17 +0000 (UTC)
commit c74ccd7b250ea4bd0a05aa746d4197ac9c1b7d9b
Author: Michael James Gratton <mike vee net>
Date: Mon Apr 5 11:51:50 2021 +1000
WIP: vapi/javascriptcoregtk-4.0.vapi: Fix JSC.Class.add_property binding
vapi/javascriptcoregtk-4.0.vapi | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/vapi/javascriptcoregtk-4.0.vapi b/vapi/javascriptcoregtk-4.0.vapi
index ec34b2b84..7870343e6 100644
--- a/vapi/javascriptcoregtk-4.0.vapi
+++ b/vapi/javascriptcoregtk-4.0.vapi
@@ -221,7 +221,12 @@ 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 = 3.33333, destroy_notify_pos = 3.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 +396,21 @@ 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 (JSC.Class instance, JSC.Value 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)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]