summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/pkg/all-in-one/all_in_one.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/pkg/all-in-one/all_in_one.h b/internal/pkg/all-in-one/all_in_one.h
new file mode 100644
index 0000000..746f102
--- /dev/null
+++ b/internal/pkg/all-in-one/all_in_one.h
@@ -0,0 +1,24 @@
+#include <stdarg.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdlib.h>
+
+/**
+ * Represents a all in one instance
+ */
+typedef struct AllInOneInstance AllInOneInstance;
+
+void set_error_handler(void (*func)(int, char*));
+
+/**
+ * Loads the config json using the nova shared config loader
+ */
+char *load_config(void);
+
+void stop_instance(struct AllInOneInstance *instance);
+
+/**
+ * # Panics
+ * Panics if an incorrect `RUST_LOG` variables is specified.
+ */
+struct AllInOneInstance *create_instance(char *config);