|
Public Member Functions |
| | Libexec () |
| | Initialize libexec.
|
| const char * | getEnv (const char *id) |
| | Get a header record item.
|
| const char * | getArg (const char *id) |
| | Get a named libexec command line argument.
|
| const char * | getPath (const char *filename, char *buffer, unsigned size) |
| | Get a fully qualified and resolved pathname.
|
| const char * | getFile (const char *filename) |
| | Get and verify partial pathname for file oriented libexec commands.
|
| void | setVoice (const char *v) |
| | Set the effective voice library to use.
|
| void | setLevel (Audio::Level l) |
| | Set the effective audio level for tones.
|
| void | hangupSession (void) |
| | Hangup running session.
|
| void | detachSession (unsigned code) |
| | Resume server session, libexec continues detached.
|
| result_t | sendCommand (const char *text, char *buffer=NULL, unsigned size=0) |
| | Send a command through to server and capture result.
|
| result_t | sendResult (const char *text) |
| | Send a result to the server.
|
| result_t | xferCall (const char *dest) |
| | Transfer a call.
|
| result_t | replayFile (const char *file) |
| | Replay an audio file.
|
| result_t | replayOffset (const char *file, const char *offset) |
| | Replay an audio file from a specified offset.
|
| result_t | recordFile (const char *file, timeout_t duration, timeout_t silence=0) |
| | Record an audio file.
|
| result_t | speak (const char *format,...) |
| | Play a phrase.
|
| result_t | playTone (const char *name, timeout_t duration=0, unsigned level=0) |
| | Play a tone.
|
| result_t | playSingleTone (short f1, timeout_t duration, unsigned level=0) |
| result_t | playDualTone (short f1, short f2, timeout_t duration, unsigned level=0) |
| result_t | recordOffset (const char *file, const char *offset, timeout_t duration, timeout_t silence=0) |
| | Record an audio file to a specified offset.
|
| result_t | eraseFile (const char *file) |
| | Erase an audio file.
|
| result_t | moveFile (const char *file1, const char *file2) |
| | Move an audio file.
|
| result_t | clearInput (void) |
| | Flush input.
|
| bool | waitInput (timeout_t timeout) |
| | Wait for input.
|
| result_t | readInput (char *buffer, unsigned size, timeout_t timeout) |
| | Read a line of input.
|
| char | readKey (timeout_t timeout) |
| | Read a single key of input.
|
| result_t | sizeSym (const char *id, unsigned size) |
| result_t | addSym (const char *id, const char *value) |
| result_t | setSym (const char *id, const char *value) |
| result_t | getSym (const char *id, char *buf, unsigned size) |
| void | postSym (const char *id, const char *value) |
| | Post a symbol asychrononous event to server.
|
Public Attributes |
| result_t | result |
| char | digits [64] |
| char | query [512] |
| char | position [32] |
| unsigned | exitcode |
| unsigned | reply |
Protected Attributes |
| Keydata | head |
| Keydata | args |
| const char * | tsid |
| const char * | voice |
| Audio::Level | level |
This is intended for writing external apps and is neatly tucked away into libbayonne as well.