1ea214b620715aa8b213c5686383b821e720fe42Timo Sirainen#ifndef DICT_COMMANDS_H
1ea214b620715aa8b213c5686383b821e720fe42Timo Sirainen#define DICT_COMMANDS_H
1ea214b620715aa8b213c5686383b821e720fe42Timo Sirainen
1ea214b620715aa8b213c5686383b821e720fe42Timo Sirainenstruct dict_connection;
1ea214b620715aa8b213c5686383b821e720fe42Timo Sirainen
cbe49ba128638e63395aedaa2144087c89835633Timo Sirainenstruct dict_command_stats {
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainen struct stats_dist *lookups;
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainen struct stats_dist *iterations;
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainen struct stats_dist *commits;
cbe49ba128638e63395aedaa2144087c89835633Timo Sirainen};
cbe49ba128638e63395aedaa2144087c89835633Timo Sirainen
cbe49ba128638e63395aedaa2144087c89835633Timo Sirainenextern struct dict_command_stats cmd_stats;
cbe49ba128638e63395aedaa2144087c89835633Timo Sirainen
1ea214b620715aa8b213c5686383b821e720fe42Timo Sirainenint dict_command_input(struct dict_connection *conn, const char *line);
1ea214b620715aa8b213c5686383b821e720fe42Timo Sirainen
1a883718249b8db128a105ee7f03293873f1f9c5Timo Sirainenvoid dict_connection_cmds_output_more(struct dict_connection *conn);
1a883718249b8db128a105ee7f03293873f1f9c5Timo Sirainen
cbe49ba128638e63395aedaa2144087c89835633Timo Sirainenvoid dict_commands_init(void);
cbe49ba128638e63395aedaa2144087c89835633Timo Sirainenvoid dict_commands_deinit(void);
cbe49ba128638e63395aedaa2144087c89835633Timo Sirainen
1ea214b620715aa8b213c5686383b821e720fe42Timo Sirainen#endif