Go to the source code of this file.
Functions | |
ARRAY_HEAD (CommandArray, struct Command) | |
static int | commands_sort (const void *a, const void *b, void *sdata) |
Compare two commands by name - Implements sort_t -. | |
void | commands_register (const struct Command *cmds, const size_t num_cmds) |
Add commands to Commands array. | |
void | commands_cleanup (void) |
Free Commands array. | |
size_t | commands_array (struct Command **first) |
Get Commands array. | |
struct Command * | command_get (const char *s) |
Get a Command by its name. | |
Variables | |
static struct CommandArray | Commands = ARRAY_HEAD_INITIALIZER |
All the registered commands, e.g. alias, sidebar_pin. | |
NeoMutt Commands.
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.c.
ARRAY_HEAD | ( | CommandArray | , |
struct Command | |||
) |
void commands_register | ( | const struct Command * | cmds, |
const size_t | num_cmds | ||
) |
Add commands to Commands array.
cmds | Array of Commands |
num_cmds | Number of Commands in the Array |
Definition at line 53 of file command.c.
void commands_cleanup | ( | void | ) |
size_t commands_array | ( | struct Command ** | first | ) |
Get Commands array.
first | Set to first element of Commands array |
num | Size of Commands array |
Definition at line 75 of file command.c.
struct Command * command_get | ( | const char * | s | ) |
Get a Command by its name.
s | Command string to lookup |
ptr | Success, Command |
NULL | Error, no such command |
Definition at line 87 of file command.c.
|
static |