-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.h
57 lines (39 loc) · 1.27 KB
/
settings.h
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
53
54
55
56
57
#ifndef SETTINGS_H
#define SETTINGS_H 1
/* Forward declaration for worker */
struct settings_t;
#include "seqnum.h"
#include "rules/ruleset.h"
#include "workers/loader.h"
struct settings_t {
/* Highest processed seqnum */
event_seqnum_t highest_seqnum;
/* Grace time */
int grace;
/* We run in persitent mode or we quit once we've processed everything. */
int persistent;
/* Do we use flag system associated with the rules? */
int useflags;
/* Do we even use rules? */
int dumb;
/* File descriptor of the netlink socket. */
int netlink_socket;
/* Modprobe command to be used. If NULL, attempt autodetection.*/
char *modprobe_command;
/* Coldplug command to be executed. If none, NULL. */
char *coldplug_command;
/* Path to rules file. */
char *rules_file;
/* List of rules to be used. */
struct ruleset_t rules;
/* Worker name to be loaded */
char *worker_name;
/* Worker loader */
struct loader_ctx_t *worker;
/* All the unprocessed arguments go here. */
char **worker_argv;
int worker_argc;
};
void settings_init(struct settings_t *);
void settings_clear(struct settings_t *);
#endif /* SETTINGS_H */