no more submodule

This commit is contained in:
2024-09-15 22:40:48 +02:00
parent df3b8a3135
commit 0234b33671
5804 changed files with 943618 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
using System;
using System.Runtime.InteropServices;
using JavaScript;
namespace WebKit
{
public partial class JavascriptResult
{
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_webkit_javascript_result_get_js_value(IntPtr raw);
static d_webkit_javascript_result_get_js_value webkit_javascript_result_get_js_value = FuncLoader.LoadFunction<d_webkit_javascript_result_get_js_value>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_javascript_result_get_js_value"));
public Value JsValue {
get {
IntPtr raw_ret = webkit_javascript_result_get_js_value(Handle);
Value ret = new Value(raw_ret);
return ret;
}
}
static bool initialized = false;
static JavascriptResult()
{
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize();
if (initialized)
return;
GLib.GType.Register (JavascriptResult.GType, typeof (JavascriptResult));
initialized = true;
}
}
}