2015-08-15 01:46:46 -07:00
|
|
|
#ifndef UDATA_H_INCLUDED
|
|
|
|
# define UDATA_H_INCLUDED
|
|
|
|
|
2015-08-14 09:40:35 -07:00
|
|
|
#include "config.h"
|
|
|
|
#include "utarray.h"
|
|
|
|
#ifdef HAVE_REDIS
|
|
|
|
# include <hiredis/hiredis.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
struct udata {
|
|
|
|
UT_array *topics; /* Array of topics to subscribe to */
|
|
|
|
#ifdef HAVE_REDIS
|
|
|
|
redisContext *redis;
|
|
|
|
#endif
|
|
|
|
int usefiles; /* True if files to be written */
|
|
|
|
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 useredis; /* True if we should do Redis (if we have it) */
|
2015-08-19 08:27:49 -07:00
|
|
|
int revgeo; /* True (default) if we should do reverse Geo lookups */
|
2015-08-19 09:24:24 -07:00
|
|
|
int qos; /* Subscribe QoS */
|
2015-08-14 09:40:35 -07:00
|
|
|
};
|
2015-08-15 01:46:46 -07:00
|
|
|
|
|
|
|
#endif
|