dict-client.h revision 842b049f6e2f8f88f7b69a182f5ad8e58f76f1df
#ifndef DICT_CLIENT_H
#define DICT_CLIENT_H
#include "dict.h"
#define DEFAULT_DICT_SERVER_SOCKET_FNAME "dict"
#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 {
DICT_PROTOCOL_REPLY_NOTFOUND = 'N',
DICT_PROTOCOL_REPLY_FAIL = 'F',
};
const char *dict_client_escape(const char *src);
const char *dict_client_unescape(const char *src);
#endif