You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
489 B
C

#ifndef CMD_H
#define CMD_H
#include <stdlib.h>
#include <hiredis/async.h>
14 years ago
#include <sys/queue.h>
#include <evhttp.h>
#include <event.h>
struct evhttp_request;
struct cmd {
int count;
const char **argv;
size_t *argv_len;
struct evhttp_request *rq;
14 years ago
struct evkeyvalq uri_params;
};
struct cmd *
cmd_new(struct evhttp_request *rq, int count);
void
cmd_free(struct cmd *c);
void
14 years ago
cmd_run(redisAsyncContext *c, struct evhttp_request *rq,
const char *uri, size_t uri_len);
#endif