diff options
Diffstat (limited to 'client/libacron/include/libac.h')
-rw-r--r-- | client/libacron/include/libac.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/client/libacron/include/libac.h b/client/libacron/include/libac.h new file mode 100644 index 0000000..80734dc --- /dev/null +++ b/client/libacron/include/libac.h @@ -0,0 +1,34 @@ +/* + * Created by yuuta on 7/13/22. + */ + +#ifndef LIBAC_LIBAC_H +#define LIBAC_LIBAC_H + +#include "common.h" +#include "events.h" +#include "net.h" +#include "requests.h" +#include "ids.h" + +#include <json-c/json_tokener.h> +#include <stdio.h> + +typedef struct libac_config { + FILE *out; + json_tokener *tok; +} libac_config_t; + +/** + * Initialize libac for the calling thread. + * @return 0 on success. + */ +int ac_init(const libac_config_t *config); + +/** + * Destroy libac configuration for the calling thread. + * @return 0 on success. + */ +int ac_free(void); + +#endif /* LIBAC_LIBAC_H */ |