summaryrefslogtreecommitdiff
path: root/stub
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-26 03:28:36 +0700
committerDaniil Baturin <daniil@baturin.org>2018-05-26 03:28:36 +0700
commit557f45a5a606b8f8ae1630c9f267d31376912746 (patch)
treef981b1ee0655a34399585c7b520619c14ff9a962 /stub
downloadlibvyosconfig-557f45a5a606b8f8ae1630c9f267d31376912746.tar.gz
libvyosconfig-557f45a5a606b8f8ae1630c9f267d31376912746.zip
Import the initial, proof of concept implementation.
Diffstat (limited to 'stub')
-rw-r--r--stub/init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/stub/init.c b/stub/init.c
new file mode 100644
index 0000000..20508b8
--- /dev/null
+++ b/stub/init.c
@@ -0,0 +1,9 @@
+#include <caml/callback.h>
+
+__attribute__ ((__constructor__))
+void
+init(void)
+{
+ char *caml_argv[1] = { NULL };
+ caml_startup(caml_argv);
+}