]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
javascriptcoregtk-4.0,webkit2gtk-web-extension-4.0: Fix some binding errors
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 5 Apr 2021 17:06:40 +0000 (19:06 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 5 Apr 2021 17:40:40 +0000 (19:40 +0200)
vapi/javascriptcoregtk-4.0.vapi
vapi/metadata/JavaScriptCore-4.0-custom.vala
vapi/metadata/WebKit2WebExtension-4.0-custom.vala
vapi/webkit2gtk-web-extension-4.0.vapi

index ec34b2b848a6ccb6df15995b055c8db484220526..0e79debcbbfb44e47bb9cd0407a1066bdb3db6b5 100644 (file)
@@ -43,7 +43,7 @@ namespace JS {
                [CCode (cname = "JSObjectHasProperty", instance_pos = 1.1)]
                public bool has_property (JS.Context ctx, JS.String property_name);
                [CCode (cname = "JSObjectMakeFunction")]
-               public Object.make_function (JS.String? name, [CCode (array_length_pos = 1.5)] JS.String[]? parameter_names, JS.String body, JS.String? source_url, int starting_line_number, out JS.Value? exception);
+               public Object.make_function (JS.Context ctx, JS.String? name, [CCode (array_length_pos = 2.5)] JS.String[]? parameter_names, JS.String body, JS.String? source_url, int starting_line_number, out JS.Value? exception);
        }
        [CCode (cheader_filename = "JavaScriptCore/JavaScript.h", cname = "struct OpaqueJSString", free_function = "JSStringRelease", has_type_id = false)]
        [Compact]
@@ -72,7 +72,7 @@ namespace JS {
                [CCode (cname = "JSValueGetType", instance_pos = 1.1)]
                public JS.Type get_type (JS.Context ctx);
                [CCode (cname = "JSValueGetTypedArrayType", instance_pos = 1.1)]
-               public JS.TypedArrayType get_typed_array_type (JS.Context ctx);
+               public JS.TypedArrayType get_typed_array_type (JS.Context ctx, out JS.Value? exception = null);
                [CCode (cname = "JSValueIsArray", instance_pos = 1.1)]
                public bool is_array (JS.Context ctx);
                [CCode (cname = "JSValueIsBoolean", instance_pos = 1.1)]
index 0ba392d63957498c18c25fcacf86219223d7e457..be2114816bee167e22a03c732a103f41f833129b 100644 (file)
@@ -46,7 +46,7 @@ namespace JS {
                [CCode (cname = "JSObjectHasProperty", instance_pos = 1.1)]
                public bool has_property (JS.Context ctx, JS.String property_name);
                [CCode (cname = "JSObjectMakeFunction")]
-               public Object.make_function (JS.String? name, [CCode (array_length_pos = 1.5)] JS.String[]? parameter_names, JS.String body, JS.String? source_url, int starting_line_number, out JS.Value? exception);
+               public Object.make_function (JS.Context ctx, JS.String? name, [CCode (array_length_pos = 2.5)] JS.String[]? parameter_names, JS.String body, JS.String? source_url, int starting_line_number, out JS.Value? exception);
        }
        [CCode (cheader_filename = "JavaScriptCore/JavaScript.h", cname = "struct OpaqueJSString", free_function = "JSStringRelease", has_type_id = false)]
        [Compact]
@@ -76,7 +76,7 @@ namespace JS {
                public JS.Type get_type (JS.Context ctx);
 
                [CCode (cname = "JSValueGetTypedArrayType", instance_pos = 1.1)]
-               public JS.TypedArrayType get_typed_array_type (JS.Context ctx);
+               public JS.TypedArrayType get_typed_array_type (JS.Context ctx, out JS.Value? exception = null);
 
                [CCode (cname = "JSValueIsArray", instance_pos = 1.1)]
                public bool is_array (JS.Context ctx);
index a994a774efab03c8170be19770179b02f12ae25a..11875102e1d02174701332134b726ce31d0e2d0b 100644 (file)
@@ -1,5 +1,6 @@
 namespace WebKit {
        namespace DOM {
+               [CCode (has_typedef = false)]
                public delegate void EventTargetFunc (WebKit.DOM.EventTarget target, WebKit.DOM.Event event);
        }
 }
index 893236c56b57686df89a1fe65dca7fd689d213c4..f28f6f81aebe755c4bdb0c5a3a26e498dd4192bc 100644 (file)
@@ -3676,7 +3676,7 @@ namespace WebKit {
                        [Version (deprecated = true, deprecated_since = "2.22")]
                        public abstract string lookup_namespace_uri (string prefix);
                }
-               [CCode (cheader_filename = "webkit2/webkit-web-extension.h")]
+               [CCode (cheader_filename = "webkit2/webkit-web-extension.h", has_typedef = false)]
                public delegate void EventTargetFunc (WebKit.DOM.EventTarget target, WebKit.DOM.Event event);
                [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cname = "WEBKIT_DOM_CSS_RULE_CHARSET_RULE")]
                [Version (deprecated = true, deprecated_since = "2.22")]