Mercurial > dovecot > core-2.2
comparison src/imap-login/imap-login-commands.h @ 19568:828dd58e03a4
imap-login: Added API for registering/unregistering commands (for plugins).
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 15 Jan 2016 16:46:34 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
19567:11b714c6c31c | 19568:828dd58e03a4 |
---|---|
1 #ifndef IMAP_LOGIN_COMMANDS_H | |
2 #define IMAP_LOGIN_COMMANDS_H | |
3 | |
4 struct imap_arg; | |
5 struct imap_client; | |
6 | |
7 typedef int imap_login_command_t(struct imap_client *client, | |
8 const struct imap_arg *args); | |
9 | |
10 struct imap_login_command { | |
11 const char *name; | |
12 imap_login_command_t *func; | |
13 }; | |
14 | |
15 struct imap_login_command *imap_login_command_lookup(const char *name); | |
16 | |
17 void imap_login_commands_register(const struct imap_login_command *commands, | |
18 unsigned int count); | |
19 void imap_login_commands_unregister(const struct imap_login_command *commands, | |
20 unsigned int count); | |
21 | |
22 void imap_login_commands_init(void); | |
23 void imap_login_commands_deinit(void); | |
24 | |
25 #endif |