recorder/ghash.h

20 lines
659 B
C
Raw Normal View History

2015-08-14 09:40:35 -07:00
#include "config.h"
#include "udata.h"
#include <hiredis/hiredis.h>
#include "geohash.h"
#include "utstring.h"
#include "json.h"
#ifndef TRUE
# define TRUE 1
# define FALSE 0
#endif
void redis_ping(redisContext **redis);
// void ghash_store( redisContext **redis, char *ghash, char *addr, char *cc);
// int ghash_cached( redisContext **redis, char *ghash, UT_string *addr, UT_string *cc);
void last_storeredis(redisContext **redis, char *username, char *device, char *jsonstring);
int ghash_readcache(struct udata *ud, char *ghash, UT_string *addr, UT_string *cc);
void ghash_storecache(struct udata *ud, JsonNode *geo, char *ghash, char *addr, char *cc);