Go to the source code of this file.
Functions | |
static int | commands_sort (const void *a, const void *b, void *sdata) |
Compare two commands by name - Implements sort_t -. | |
bool | commands_register (struct CommandArray *ca, const struct Command *cmds) |
Add commands to Commands array. | |
void | commands_clear (struct CommandArray *ca) |
Clear an Array of Commands. | |
const struct Command * | commands_get (struct CommandArray *ca, const char *name) |
Get a Command by its name. | |
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.
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.
void commands_clear | ( | struct CommandArray * | ca | ) |
Clear an Array of Commands.
Definition at line 70 of file command.c.
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.