view src/dict/dict-commands.h @ 22638:7d5634889da8

lib: net_ip2addr() - Optimize by allocating destination memory immediately It doesn't really matter if we allocate a few extra bytes.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sat, 04 Nov 2017 01:42:37 +0200
parents 7b8c0ca9a67c
children
line wrap: on
line source

#ifndef DICT_COMMANDS_H
#define DICT_COMMANDS_H

struct dict_connection;

struct dict_command_stats {
	struct timing *lookups;
	struct timing *iterations;
	struct timing *commits;
};

extern struct dict_command_stats cmd_stats;

int dict_command_input(struct dict_connection *conn, const char *line);

void dict_connection_cmds_output_more(struct dict_connection *conn);

void dict_commands_init(void);
void dict_commands_deinit(void);

#endif