diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-05-26 03:28:36 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-05-26 03:28:36 +0700 |
commit | 557f45a5a606b8f8ae1630c9f267d31376912746 (patch) | |
tree | f981b1ee0655a34399585c7b520619c14ff9a962 /stub | |
download | libvyosconfig-557f45a5a606b8f8ae1630c9f267d31376912746.tar.gz libvyosconfig-557f45a5a606b8f8ae1630c9f267d31376912746.zip |
Import the initial, proof of concept implementation.
Diffstat (limited to 'stub')
-rw-r--r-- | stub/init.c | 9 |
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); +} |