GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CMX / V2-13-5 > cid / linux-gcc
#include <stdio.h>
#include <string.h>
#include <CMX/CMX_interface_pub.h>
Classes | |
struct | _CID_Command |
Standard structure for descibing a CID command. More... | |
struct | _CID_Qualifier |
Standard structure for describing a CID qualifier. More... | |
Typedefs | |
typedef unsigned int | CID_dispatch (unsigned int pcnt, const char *parm[]) |
Typedef for a command line callback routine. | |
Functions | |
static unsigned int | abbrev (const char *left, unsigned int llen, const char *rite, unsigned int rlen, unsigned int min) |
Test a string for being a minimally long abbreviation of another. | |
static unsigned int | parse_arg (unsigned int *pcnt, const char *parm[], unsigned int qcnt, struct _CID_Qualifier *qlst) |
Identify parameters and qualifiers in arguments. | |
static unsigned int | check (unsigned int pcnt, const char *parm[]) |
Check the syntax of an interface definition file. | |
static unsigned int | compare (unsigned int pcnt, const char *parm[]) |
Compare an "old" and a "new" interface definition file. | |
static unsigned int | find (unsigned int pcnt, const char *parm[]) |
Find a symbol in an interface definition file. | |
static unsigned int | help (unsigned int pcnt, const char *parm[]) |
Print some help information. | |
static unsigned int | show (unsigned int pcnt, const char *parm[]) |
Show some feature of an interface definition file. | |
static unsigned int | show_interface (unsigned int pcnt, const char *parm[]) |
Show the interface names in an interface definition file. | |
static unsigned int | show_global (unsigned int pcnt, const char *parm[]) |
Show global symbols in an interface file. | |
static unsigned int | show_lookup (unsigned int pcnt, const char *parm[]) |
Show lookup symbols in an interface file. | |
int | main (int pcnt, const char *parm[]) |
Main routine. | |
Variables | |
const char * | s_few = "few" |
The string "few". | |
const char * | s_many = "many" |
The string "many". |
CVS $Id: cid.c,v 1.6 2010/04/22 23:41:29 apw Exp $
unsigned int CID_dispatch |
Typedef for a command line callback routine.
pcnt | Remaining parameter (token) count | |
parm | Remaining parameters (tokens) |
static unsigned int abbrev | ( | const char * | left, | |
unsigned int | llen, | |||
const char * | rite, | |||
unsigned int | rlen, | |||
unsigned int | min | |||
) | [static] |
Test a string for being a minimally long abbreviation of another.
left | String to test | |
llen | Length of string to test | |
rite | String to test against | |
rlen | Length of string to test against | |
min | Minimum length of overlap |
0 | Success | |
1 | Failure |
static unsigned int check | ( | unsigned int | pcnt, | |
const char * | parm[] | |||
) | [static] |
Check the syntax of an interface definition file.
pcnt | Number of argument strings remaining | |
parm | Array of pointers to argument strings |
0 | Success | |
1 | Failure |
static unsigned int compare | ( | unsigned int | pcnt, | |
const char * | parm[] | |||
) | [static] |
Compare an "old" and a "new" interface definition file.
pcnt | Number of argument strings remaining | |
parm | Array of pointers to argument strings |
0 | Success | |
1 | Failure |
static unsigned int find | ( | unsigned int | pcnt, | |
const char * | parm[] | |||
) | [static] |
Find a symbol in an interface definition file.
pcnt | Number of argument strings remaining | |
parm | Array of pointers to argument strings |
0 | Success | |
1 | Failure |
static unsigned int help | ( | unsigned int | pcnt, | |
const char * | parm[] | |||
) | [static] |
Print some help information.
pcnt | Number of argument strings remaining | |
parm | Array of pointers to argument strings |
0 | Success |
static unsigned int show | ( | unsigned int | pcnt, | |
const char * | parm[] | |||
) | [static] |
Show some feature of an interface definition file.
pcnt | Number of argument strings remaining | |
parm | Array of pointers to argument strings |
0 | Success | |
1 | Failure |
static unsigned int show_global | ( | unsigned int | pcnt, | |
const char * | parm[] | |||
) | [static] |
Show global symbols in an interface file.
pcnt | Number of argument strings remaining | |
parm | Array of pointers to argument strings |
0 | Success | |
1 | Failure |
static unsigned int show_interface | ( | unsigned int | pcnt, | |
const char * | parm[] | |||
) | [static] |
Show the interface names in an interface definition file.
pcnt | Number of argument strings remaining | |
parm | Array of pointers to argument strings |
0 | Success | |
1 | Failure |
static unsigned int show_lookup | ( | unsigned int | pcnt, | |
const char * | parm[] | |||
) | [static] |
Show lookup symbols in an interface file.
pcnt | Number of argument strings remaining | |
parm | Array of pointers to argument strings |
0 | Success | |
1 | Failure |