| Did you know ... | Search Documentation: |
| hostQuery() |
hostQuery()
PCE queries the host system
The host-language
interface must define a C-function hostQuery, which allows PCE to
acquire information about the environment. Below is a skeleton of this
function:
int
hostQuery(what, value) int what; PceValue *value;
{ switch(what)
{ case HOST_SYMBOLFILE:
<Your code> return PCE_FAIL; case HOST_GETC:
<Your code> return PCE_SUCCEED; default:
fprintf(stderr, "Unknown query from PCE: %d", what); return
PCE_FAIL;
}
}
The defined requests are:
-name to a
Unix symbol-file describing the current process. Used by PCE to produce
a C-stack-trace when a fatal error occursParent: Host Interface