aboutsummaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
Diffstat (limited to 'vapi')
-rw-r--r--vapi/url-dispatcher.vapi9
1 files changed, 9 insertions, 0 deletions
diff --git a/vapi/url-dispatcher.vapi b/vapi/url-dispatcher.vapi
new file mode 100644
index 0000000..ed751ec
--- /dev/null
+++ b/vapi/url-dispatcher.vapi
@@ -0,0 +1,9 @@
+[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "liburl-dispatcher-1/url-dispatcher.h")]
+
+namespace UrlDispatch
+{
+ public delegate void DispatchCallback ();
+
+ [CCode (cname = "url_dispatch_send")]
+ public static void send (string url, DispatchCallback? func = null);
+}