blob: b588d757af90aff8b8c79e09b7d3271fe1d2cbb7 (
plain) (
blame)
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
|
/* glougloud internal */
#include <dnet.h>
#define GLOUGLOUD_USER_PROBES "_glougloud_probe"
#define GLOUGLOUD_USER_VIZ "_glougloud_viz"
#define GLOUGLOUD_LOGFILE "/var/log/glougloud.log"
#define GLOUGLOUD_MOD_PATH "/lib/glougloud/modules/"
struct glougloud {
int daemonize;
char *logfile;
int loglevel;
int pid;
struct {
char *socket;
} redis;
struct {
struct addr serv_ip;
int serv_port;
} probes;
struct {
struct addr serv_ip;
int serv_port;
} viz;
};
/* redis.c */
int redis_init(struct glougloud *);
void redis_shutdown(void);
int redis_connect(struct event_base *);
/* probes.c */
int probes_init(struct glougloud *);
void probes_shutdown(void);
/* viz.c */
int viz_init(struct glougloud *);
void viz_shutdown(void);
|