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 |
Macros | |
| #define | CF_NO_FLAGS 0 |
| No flags are set. | |
| #define | CF_SYNONYM (1 << 0) |
| Command is a synonym for another command. | |
| #define | CF_DEPRECATED (1 << 1) |
| Command is deprecated. | |
| #define | CMD_NO_DATA 0 |
| Convenience symbol. | |
Typedefs | |
| typedef uint8_t | CommandFlags |
| Special characters that end a text string. | |
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_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.
| #define CF_SYNONYM (1 << 0) |
| typedef uint8_t CommandFlags |
Special characters that end a text string.
Flags, e.g. CF_NO_FLAGS
| 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.
| enum CommandId |
ID of Command.
All the Commands in NeoMutt.
| Enumerator | |
|---|---|
| CMD_NONE | No Command. |
| CMD_ACCOUNT_HOOK |
|
| CMD_ALIAS |
|
| CMD_ALTERNATES |
|
| CMD_ALTERNATIVE_ORDER |
|
| CMD_APPEND_HOOK |
|
| CMD_ATTACHMENTS |
|
| CMD_AUTO_VIEW |
|
| CMD_BIND |
|
| CMD_CD |
|
| CMD_CHARSET_HOOK |
|
| CMD_CLOSE_HOOK |
|
| CMD_COLOR |
|
| CMD_CRYPT_HOOK |
|
| CMD_ECHO |
|
| CMD_EXEC |
|
| CMD_FCC_HOOK |
|
| CMD_FCC_SAVE_HOOK |
|
| CMD_FINISH |
|
| CMD_FOLDER_HOOK |
|
| CMD_GROUP |
|
| CMD_HEADER_ORDER |
|
| CMD_HOOKS |
|
| CMD_ICONV_HOOK |
|
| CMD_IFDEF |
|
| CMD_IFNDEF |
|
| CMD_IGNORE |
|
| CMD_INDEX_FORMAT_HOOK |
|
| CMD_LISTS |
|
| CMD_LUA |
|
| CMD_LUA_SOURCE |
|
| CMD_MACRO |
|
| CMD_MAILBOXES |
|
| CMD_MAILTO_ALLOW |
|
| CMD_MBOX_HOOK |
|
| CMD_MESSAGE_HOOK |
|
| CMD_MIME_LOOKUP |
|
| CMD_MONO |
|
| CMD_MY_HEADER |
|
| CMD_NAMED_MAILBOXES |
|
| CMD_NOSPAM |
|
| CMD_OPEN_HOOK |
|
| CMD_PUSH |
|
| CMD_REPLY_HOOK |
|
| CMD_RESET |
|
| CMD_SAVE_HOOK |
|
| CMD_SCORE |
|
| CMD_SEND2_HOOK |
|
| CMD_SEND_HOOK |
|
| CMD_SET |
|
| CMD_SETENV |
|
| CMD_SHUTDOWN_HOOK |
|
| CMD_SIDEBAR_PIN |
|
| CMD_SIDEBAR_UNPIN |
|
| CMD_SOURCE |
|
| CMD_SPAM |
|
| CMD_STARTUP_HOOK |
|
| CMD_SUBJECT_REGEX |
|
| CMD_SUBSCRIBE |
|
| CMD_SUBSCRIBE_TO |
|
| CMD_TAG_FORMATS |
|
| CMD_TAG_TRANSFORMS |
|
| CMD_TIMEOUT_HOOK |
|
| CMD_TOGGLE |
|
| CMD_UNALIAS |
|
| CMD_UNALTERNATES |
|
| CMD_UNALTERNATIVE_ORDER |
|
| CMD_UNATTACHMENTS |
|
| CMD_UNAUTO_VIEW |
|
| CMD_UNBIND |
|
| CMD_UNCOLOR |
|
| CMD_UNGROUP |
|
| CMD_UNHEADER_ORDER |
|
| CMD_UNHOOK |
|
| CMD_UNIGNORE |
|
| CMD_UNLISTS |
|
| CMD_UNMACRO |
|
| CMD_UNMAILBOXES |
|
| CMD_UNMAILTO_ALLOW |
|
| CMD_UNMIME_LOOKUP |
|
| CMD_UNMONO |
|
| CMD_UNMY_HEADER |
|
| CMD_UNSCORE |
|
| CMD_UNSET |
|
| CMD_UNSETENV |
|
| CMD_UNSUBJECT_REGEX |
|
| CMD_UNSUBSCRIBE |
|
| CMD_UNSUBSCRIBE_FROM |
|
| CMD_VERSION |
|
Definition at line 55 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_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: