1xpacmdadd(3) SAORD Documentation xpacmdadd(3)
2
3
4
6 XPACmdAdd: add a command to an XPA command public access point
7
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
18 Add a command to an XPA command access point. The XPA argument speci‐
19 fies the XPA struct returned by a call to XPANewCmd(). The name argu‐
20 ment is the name of the command. The other arguments function identi‐
21 cally to the arguments in the XPANew() command, i.e., the send_callback
22 and rec_callback routines have identical calling sequences to their
23 XPANew() counterparts, with the exceptions noted below.
24
25 When help is requested for a command access point using:
26
27 xpaget -h class:name
28
29 all of the command help strings are listed. To get help for a given
30 command, use:
31
32 xpaget -h class:name cmd
33
34 Also, the acl keyword in the send_mode and receive_mode strings is
35 global to the access point, not local to the command. Thus, the value
36 for the acl mode should be the same in all send_mode (or receive_mode)
37 strings for each command in a command access point. (The acl for
38 send_mode need not be the same as the acl for receive_mode, though).
39
41 See xpa(n) for a list of XPA help pages
42
43
44
45version 2.1.12 January 26, 2010 xpacmdadd(3)