mirror of
https://github.com/owntracks/recorder.git
synced 2024-11-16 02:18:27 -07:00
20 lines
659 B
C
20 lines
659 B
C
|
#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);
|