aboutsummaryrefslogtreecommitdiff
path: root/plugin.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-05-26 16:02:29 +0200
committercbdev <cb@cbcdn.com>2019-05-26 16:02:29 +0200
commita8233d97936eeed545ea763c0ace1eb4f87219f9 (patch)
treea15bdfbc91226bbb94052817e9fa15decc1abbc6 /plugin.h
parent4c6833d470eda4be02b4dfb32cdeba9d93c67f43 (diff)
downloadwebsocksy-a8233d97936eeed545ea763c0ace1eb4f87219f9.tar.gz
websocksy-a8233d97936eeed545ea763c0ace1eb4f87219f9.tar.bz2
websocksy-a8233d97936eeed545ea763c0ace1eb4f87219f9.zip
Basic plugin loading
Diffstat (limited to 'plugin.h')
-rw-r--r--plugin.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugin.h b/plugin.h
new file mode 100644
index 0000000..f7dcd11
--- /dev/null
+++ b/plugin.h
@@ -0,0 +1,10 @@
+/* Shared object handling */
+int plugin_framing_load(char* path);
+int plugin_backend_load(char* backend_requested, ws_backend* backend);
+
+/* Framing function registry */
+int plugin_register_framing(char* name, ws_framing func);
+ws_framing plugin_framing(char* name);
+
+/* Module management */
+void plugin_cleanup();