forked from owntracks/recorder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
udata.h
41 lines (36 loc) · 1.03 KB
/
udata.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
#ifndef UDATA_H_INCLUDED
# define UDATA_H_INCLUDED
#include "json.h"
#ifdef WITH_HTTP
# include "mongoose.h"
#endif
#ifdef WITH_LMDB
# include "gcache.h"
#endif
struct udata {
JsonNode *topics; /* Array of topics to subscribe to */
int ignoreretained; /* True if retained messages should be ignored */
char *pubprefix; /* If not NULL (default), republish modified payload to <pubprefix>/topic */
int skipdemo; /* True if _demo users are to be skipped */
int revgeo; /* True (default) if we should do reverse Geo lookups */
int qos; /* Subscribe QoS */
int verbose; /* TRUE if print verbose messages to stdout */
#ifdef WITH_LMDB
struct gcache *gc;
struct gcache *t2t; /* topic to tid */
# ifdef WITH_RONLY
struct gcache *ronlydb; /* RONLY db */
# endif
#endif
#ifdef WITH_HTTP
struct mg_server *mgserver; /* Mongoose */
#endif
#ifdef WITH_LUA
# ifdef WITH_LMDB
struct luadata *luadata; /* Lua stuff */
struct gcache *luadb; /* lmdb named database 'luadb' */
# endif
#endif
char *label; /* Server label */
};
#endif