aboutsummaryrefslogtreecommitdiff
path: root/client/libacron/include/libac.h
blob: adf0310c4586a38cb9e9a36dcae1e64b7c13b326 (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
35
/*
 * Created by yuuta on 7/13/22.
 */

#ifndef LIBAC_LIBAC_H
#define LIBAC_LIBAC_H

#include "incl.h"
#include "common.h"
#include "events.h"
#include "net.h"
#include "requests.h"
#include "ids.h"

#include <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.
 */
LIBAC_EXPORT int ac_init(const libac_config_t *config);

/**
 * Destroy libac configuration for the calling thread.
 * @return AC_E_OK on success.
 */
LIBAC_EXPORT int ac_free(void);

#endif /* LIBAC_LIBAC_H */