1xpacmdadd(3)                  SAORD Documentation                 xpacmdadd(3)
2
3
4

NAME

6       XPACmdAdd: add a command to an XPA command public access point
7

SYNOPSIS

9         #include <xpa.h>
10
11         XPACmd XPACmdAdd(XPA xpa, char *name, char *help,
12                          int (*send_callback)(),
13                          void *send_data, char *send_mode,
14                          int (*rec_callback)(),
15                          void *rec_data,  char *rec_mode);
16

DESCRIPTION

18       Add a command to an XPA command access point. The XPA argument
19       specifies the XPA struct returned by a call to XPANewCmd(). The name
20       argument is the name of the command. The other arguments function
21       identically to the arguments in the XPANew() command, i.e., the
22       send_callback and rec_callback routines have identical calling
23       sequences to their XPANew() counterparts, with the exceptions noted
24       below.
25
26       When help is requested for a command access point using:
27
28         xpaget -h class:name
29
30       all of the command help strings are listed.  To get help for a given
31       command, use:
32
33         xpaget -h class:name cmd
34
35       Also, the acl keyword in the send_mode and receive_mode strings is
36       global to the access point, not local to the command.  Thus, the value
37       for the acl mode should be the same in all send_mode (or receive_mode)
38       strings for each command in a command access point. (The acl for
39       send_mode need not be the same as the acl for receive_mode, though).
40

SEE ALSO

42       See xpa(n) for a list of XPA help pages
43
44
45
46version 2.1.15                   July 23, 2013                    xpacmdadd(3)
Impressum