Man page - xpacmdadd(3)
Packages contas this manual
- xpaatexit(3)
- xpaconvert(7)
- xpaget(3)
- xpatemplate(7)
- xpaaccess(3)
- xpainet(7)
- xpacommon(7)
- xpamainloop(3)
- xpamethod(7)
- xpanslookup(3)
- xpacmdadd(3)
- xpacode(7)
- xpaenv(7)
- xpaclient(3)
- xpaname(7)
- xpaclose(3)
- xpaacl(7)
- xparace(3)
- xpacmddel(3)
- xpamacros(3)
- xpapoll(3)
- xpaset(3)
- xpaoom(7)
- xpasetfd(3)
- xpaintro(7)
- xpanew(3)
- xpaopen(3)
- xpa(7)
- xpaxt(7)
- xpafree(3)
- xpausers(7)
- xpachanges(7)
- xpainfo(3)
- xpaserver(3)
- xpacmdnew(3)
- xpainfonew(3)
- xpacleanup(3)
- xpagetfd(3)
apt-get install libxpa-dev
Manual
| xpacmdadd(3) | SAORD Documentation | xpacmdadd(3) |
NAME
XPACmdAdd - add a command to an XPA command public access point
SYNOPSIS
#include <xpa.h>
XPACmd XPACmdAdd(XPA xpa, char *name, char *help,
int (*send_callback)(),
void *send_data, char *send_mode,
int (*rec_callback)(),
void *rec_data, char *rec_mode);
DESCRIPTION
Add a command to an XPA command access point. The XPA argument specifies the XPA struct returned by a call to XPANewCmd(). The name argument is the name of the command. The other arguments function identically to the arguments in the XPANew() command, i.e., the send_callback and rec_callback routines have identical calling sequences to their XPANew() counterparts, with the exceptions noted below.
When help is requested for a command access point using:
xpaget -h class:name
all of the command help strings are listed. To get help for a given command, use:
xpaget -h class:name cmd
Also, the acl keyword in the send_mode and receive_mode strings is global to the access point, not local to the command. Thus, the value for the acl mode should be the same in all send_mode (or receive_mode) strings for each command in a command access point. (The acl for send_mode need not be the same as the acl for receive_mode, though).
SEE ALSO
See xpa(n) for a list of XPA help pages
| July 23, 2013 | version 2.1.15 |