recorder/udata.h

33 lines
759 B
C
Raw Normal View History

2015-08-15 01:46:46 -07:00
#ifndef UDATA_H_INCLUDED
# define UDATA_H_INCLUDED
2015-09-17 23:23:10 -07:00
#include "json.h"
2015-08-14 09:40:35 -07:00
2015-08-27 14:42:18 -07:00
#ifdef HAVE_HTTP
# include "mongoose.h"
#endif
2015-09-01 04:31:49 -07:00
#ifdef HAVE_LMDB
# include "gcache.h"
#endif
2015-08-27 14:42:18 -07:00
2015-08-14 09:40:35 -07:00
struct udata {
2015-09-17 23:23:10 -07:00
JsonNode *topics; /* Array of topics to subscribe to */
2015-08-14 09:40:35 -07:00
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 */
2015-09-01 04:31:49 -07:00
#ifdef HAVE_LMDB
struct gcache *gc;
#endif
2015-08-27 14:42:18 -07:00
#ifdef HAVE_HTTP
struct mg_server *mgserver; /* Mongoose */
2015-08-27 14:42:18 -07:00
#endif
2015-09-19 07:11:53 -07:00
#ifdef WITH_LUA
struct luadata *luadata; /* Lua stuff */
#endif
2015-08-14 09:40:35 -07:00
};
2015-08-15 01:46:46 -07:00
#endif