blob: 542adcb054b777cc0149333be25a3a42ac84142a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 AC_E_OK on success.
*/
int ac_init(const libac_config_t *config);
/**
* Destroy libac configuration for the calling thread.
* @return AC_E_OK on success.
*/
int ac_free(void);
#endif /* LIBAC_LIBAC_H */
|