blob: 1022da5723d360e9edef428b914935204f66e8c5 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
#include "stellar/module.h"
#include <limits.h>
#include <stdbool.h>
struct module
{
char name[NAME_MAX];
void *ctx;
};
struct module_descriptor
{
struct module_hooks hooks;
struct module *mod;
bool initialized;
}__attribute__((aligned(sizeof(void*))));
struct polling_node
{
on_polling_callback *on_polling;
void *polling_arg;
struct polling_node *next;
};
struct module_manager
{
struct module_descriptor *descriptors;
int n_descriptor;
struct polling_node *node_list;
struct
{
char *toml_path;
int max_thread_num;
struct logger *logger;
}config;
}__attribute__((aligned(sizeof(void*))));
#ifdef __cplusplus
}
#endif
|