From b4afa06e383325f4a0c751a64ca896d769db07a8 Mon Sep 17 00:00:00 2001 From: Trumeet Date: Wed, 20 Jul 2022 18:12:22 -0700 Subject: libac: First Commit --- client/libacron/include/libac.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 client/libacron/include/libac.h (limited to 'client/libacron/include/libac.h') 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 +#include + +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 */ -- cgit v1.2.3