dict-client.h revision 419cf63077e755935ce105747d6ebc67b7d38a7f
#ifndef __DICT_CLIENT_H
#define __DICT_CLIENT_H
#include "dict.h"
#define DICT_CLIENT_PROTOCOL_MAJOR_VERSION 2
#define DICT_CLIENT_PROTOCOL_MINOR_VERSION 0
enum {
/* <major-version> <minor-version> <value type> <user> <dict name> */
DICT_PROTOCOL_CMD_HELLO = 'H',
};
enum {
/* For LOOKUP command */
DICT_PROTOCOL_REPLY_NOTFOUND = 'N',
DICT_PROTOCOL_REPLY_FAIL = 'F'
};
extern struct dict dict_driver_client;
const char *dict_client_escape(const char *src);
const char *dict_client_unescape(const char *src);
#endif