Include dependency graph for command.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | Command |
Enumerations | |
| enum | CommandResult { MUTT_CMD_ERROR = -1 , MUTT_CMD_WARNING = -2 , MUTT_CMD_SUCCESS = 0 , MUTT_CMD_FINISH = 1 } |
| Error codes for command_t parse functions. More... | |
Functions | |
| ARRAY_HEAD (CommandArray, const struct Command *) | |
| const struct Command * | commands_get (struct CommandArray *ca, const char *name) |
| Get a Command by its name. | |
| void | commands_clear (struct CommandArray *ca) |
| Clear an Array of Commands. | |
| bool | commands_init (void) |
| Initialize commands array and register default commands. | |
| bool | commands_register (struct CommandArray *ca, const struct Command *cmds) |
| Add commands to Commands array. | |
NeoMutt commands API.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file command.h.
| enum CommandResult |
Error codes for command_t parse functions.
| Enumerator | |
|---|---|
| MUTT_CMD_ERROR | Error: Can't help the user. |
| MUTT_CMD_WARNING | Warning: Help given to the user. |
| MUTT_CMD_SUCCESS | Success: Command worked. |
| MUTT_CMD_FINISH | Finish: Stop processing this file. |
Definition at line 34 of file command.h.
| ARRAY_HEAD | ( | CommandArray | , |
| const struct Command * | ) |
| const struct Command * commands_get | ( | struct CommandArray * | ca, |
| const char * | name ) |
Get a Command by its name.
| ptr | Success, Command |
| NULL | Error, no such command |
Definition at line 82 of file command.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void commands_clear | ( | struct CommandArray * | ca | ) |
Clear an Array of Commands.
Definition at line 70 of file command.c.
Here is the caller graph for this function:| bool commands_init | ( | void | ) |
Initialize commands array and register default commands.
Definition at line 1748 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool commands_register | ( | struct CommandArray * | ca, |
| const struct Command * | cmds ) |
Add commands to Commands array.
| ca | Command Array |
| cmds | New Commands to add |
| true | Success |
Definition at line 51 of file command.c.
Here is the call graph for this function:
Here is the caller graph for this function: