You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
418 B
39 lines
418 B
#ifndef __REDIS_H__
|
|
#define __REDIS_H__
|
|
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
#include <hiredis.h>
|
|
|
|
|
|
|
|
|
|
struct callmaster;
|
|
struct call;
|
|
|
|
|
|
|
|
struct redis {
|
|
char host[32];
|
|
int port;
|
|
|
|
redisContext *ctx;
|
|
int db;
|
|
};
|
|
|
|
|
|
|
|
|
|
struct redis *redis_new(u_int32_t, u_int16_t, int);
|
|
int redis_restore(struct callmaster *);
|
|
void redis_update(struct call *);
|
|
void redis_delete(struct call *);
|
|
void redis_wipe(struct callmaster *);
|
|
|
|
|
|
|
|
|
|
#endif
|