Mercurial > dovecot > original-hg > dovecot-1.2
diff src/imap/commands.c @ 5568:cce4074b7876 HEAD
Added command flags parameter to command_register()
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 17 Apr 2007 18:41:24 +0300 |
parents | f612d2086448 |
children | 65c69a53a7be |
line wrap: on
line diff
--- a/src/imap/commands.c Tue Apr 17 18:39:30 2007 +0300 +++ b/src/imap/commands.c Tue Apr 17 18:41:24 2007 +0300 @@ -58,12 +58,15 @@ static ARRAY_DEFINE(commands, struct command); static bool commands_unsorted; -void command_register(const char *name, command_func_t *func) +void command_register(const char *name, command_func_t *func, + enum command_flags flags) { struct command cmd; + memset(&cmd, 0, sizeof(cmd)); cmd.name = name; cmd.func = func; + cmd.flags = flags; array_append(&commands, &cmd, 1); commands_unsorted = TRUE;