Doxygen Documentation |
||||||
Package: |
CLI |
|||||
Version: |
V0-0-5 |
Marked: |
(not marked) |
|||
Constituent: |
cli |
Tag: |
linux-gcc |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "CLI/CLI_pubdefs.h"
#include "CLI_prvdefs.h"
Functions | |
CLI_Syntax * | CLI_createSyntax (const char *name) |
Create a new CLI syntax. | |
CLI_KeyList * | CLI_createKeyList (const char *name) |
Create a new CLI keyword list. | |
CLI_KeyDef * | CLI_addKey (const CLI_KeyList *list, const char *name) |
Add a key to a CLI keyword list. | |
CLI_VerbDef * | CLI_addVerb (const CLI_Syntax *sntx, const char *name, const char *call, CLI_CB_Func *func) |
Add a verb to a CLI syntax. | |
CLI_ParmDef * | CLI_addParm (CLI_VerbDef *verb, unsigned short opts, unsigned short type, void *sork) |
Add a parameter to a CLI verb. | |
CLI_QualDef * | CLI_addQual (CLI_VerbDef *verb, const char *text, unsigned short opts, unsigned short type, CLI_KeyList *list) |
Add a qualifier to a CLI verb. | |
Variables | |
CLI_Syntax * | CLI_syntaxList = NULL |
Root of a list of all CLI syntaxes. | |
CLI_KeyList * | CLI_keyListList = NULL |
Root of a list of all keyword lists. |
CVS $Id: CLI_syntax.c,v 1.4 2003/12/12 06:13:49 apw Exp $
|
Add a key to a CLI keyword list.
|
|
Add a parameter to a CLI verb.
The opts and type arguments should be supplied as an OR of the provided C macros. There are occasions where options and types interact such that one excludes another (e.g. for a qualifier it makes no sense to define it as both requiring a value ( Parameter options:
Parameter types:
|
|
Add a qualifier to a CLI verb.
The opts and type arguments should be supplied as an OR of the provided C macros. There are occasions where options and types interact such that one excludes another (e.g. for a qualifier it makes no sense to define it as both requiring a value ( Qualifier options:
Qualifier types:
|
|
Add a verb to a CLI syntax.
Naming the callback function (argument name) is implemented for future expansion (it has no current use). |
|
Create a new CLI keyword list.
|
|
Create a new CLI syntax.
|