diff options
Diffstat (limited to 'client/libacron/private/config.h')
-rw-r--r-- | client/libacron/private/config.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/client/libacron/private/config.h b/client/libacron/private/config.h new file mode 100644 index 0000000..3b670df --- /dev/null +++ b/client/libacron/private/config.h @@ -0,0 +1,17 @@ +/* + * Created by yuuta on 7/19/22. + */ + +#ifndef LIBAC_CONFIG_H +#define LIBAC_CONFIG_H + +#include "libac.h" + +#include <json-c/json_tokener.h> +#include <stdio.h> + +extern _Thread_local struct libac_config *config; + +#define AC_CHECK_INIT do { if (!config) return AC_E_NOT_INITIALIZED; } while(0) + +#endif /* LIBAC_CONFIG_H */ |