]> granicus.if.org Git - neomutt/blob - mutt_commands.h
merge: sync to mutt/stable
[neomutt] / mutt_commands.h
1 /**
2  * Copyright (C) 2016 Bernard Pratz <z+mutt+pub@m0g.net>
3  *
4  * This program is free software: you can redistribute it and/or modify it under
5  * the terms of the GNU General Public License as published by the Free Software
6  * Foundation, either version 2 of the License, or (at your option) any later
7  * version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #ifndef _MUTT_COMMANDS_H
19 #define _MUTT_COMMANDS_H 1
20
21 struct Buffer;
22
23 struct Command
24 {
25   char *name;
26   int (*func)(struct Buffer *, struct Buffer *, unsigned long, struct Buffer *);
27   unsigned long data;
28 };
29
30 const struct Command *mutt_command_get(const char *s);
31 void mutt_commands_apply(void *data, void (*application)(void *, const struct Command *));
32
33 #endif /* _MUTT_COMMANDS_H */