29 #ifndef _RTXPRINTSTREAM_H_ 30 #define _RTXPRINTSTREAM_H_ 46 (
void* pPrntStrmInfo,
const char* fmtspec, va_list arglist);
127 (
OSCTXT *pctxt,
const char* fmtspec, va_list arglist);
157 (
void* pPrntStrmInfo,
const char* fmtspec, va_list arglist);
176 (
void* pPrntStrmInfo,
const char* fmtspec, va_list arglist);
EXTERNRT int rtxPrintStreamRelease(OSCTXT *pctxt)
This function releases the memory held by PrintStream in the context.
OSRTPrintStream g_PrintStream
Global PrintStream.
EXTERNRT int rtxDiagToStream(OSCTXT *pctxt, const char *fmtspec, va_list arglist)
Diagnostics print-to-stream function.
Common run-time context definitions.
EXTERNRT int rtxSetGlobalPrintStream(rtxPrintCallback myCallback, void *pStrmInfo)
This function is for setting the callback function for a PrintStream.
Structure to hold information about a global PrintStream.
void(* rtxPrintCallback)(void *pPrntStrmInfo, const char *fmtspec, va_list arglist)
Callback function definition for print stream.
EXTERNRT void rtxPrintStreamToStdoutCB(void *pPrntStrmInfo, const char *fmtspec, va_list arglist)
Standard callback function for use with print-to-stream for writing to stdout.
EXTERNRT int rtxPrintToStream(OSCTXT *pctxt, const char *fmtspec,...)
Print-to-stream function which in turn calls the user registered callback function of the context for...
struct OSRTPrintStream OSRTPrintStream
Structure to hold information about a global PrintStream.
Run-time context structure.
EXTERNRT int rtxSetPrintStream(OSCTXT *pctxt, rtxPrintCallback myCallback, void *pStrmInfo)
This function is for setting the callback function for a PrintStream.
EXTERNRT void rtxPrintStreamToFileCB(void *pPrntStrmInfo, const char *fmtspec, va_list arglist)
Standard callback function for use with print-to-stream for writing to a file.