diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-16 15:43:10 +0400 | 
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-16 15:43:10 +0400 | 
| commit | 0f90d0f3d30a728457e6bc5c4d1d933a8014e099 (patch) | |
| tree | b1468081a32546e8d01fba622f978cdd326cf6fd /internal/pkg/all-in-one | |
| parent | 277f38bbe89e4db57b73a4e28bf1be2f5c50ce27 (diff) | |
new build system
Diffstat (limited to 'internal/pkg/all-in-one')
| -rw-r--r-- | internal/pkg/all-in-one/all_in_one.h | 24 | 
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);  | 
