XBinder  Version 2.6.x
Classes | Typedefs | Functions | Variables
rtxPrintStream.h File Reference

Functions that allow printing diagnostic message to a stream using a callback function. More...

#include <stdarg.h>
#include "rtxsrc/rtxContext.h"

Go to the source code of this file.

Classes

struct  OSRTPrintStream
 Structure to hold information about a global PrintStream. More...
 

Typedefs

typedef void(* rtxPrintCallback) (void *pPrntStrmInfo, const char *fmtspec, va_list arglist)
 Callback function definition for print stream.
 
typedef struct OSRTPrintStream OSRTPrintStream
 Structure to hold information about a global PrintStream.
 

Functions

EXTERNRT int rtxSetPrintStream (OSCTXT *pctxt, rtxPrintCallback myCallback, void *pStrmInfo)
 This function is for setting the callback function for a PrintStream. More...
 
EXTERNRT int rtxSetGlobalPrintStream (rtxPrintCallback myCallback, void *pStrmInfo)
 This function is for setting the callback function for a PrintStream. More...
 
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 printing. More...
 
EXTERNRT int rtxDiagToStream (OSCTXT *pctxt, const char *fmtspec, va_list arglist)
 Diagnostics print-to-stream function. More...
 
EXTERNRT int rtxPrintStreamRelease (OSCTXT *pctxt)
 This function releases the memory held by PrintStream in the context. More...
 
EXTERNRT void rtxPrintStreamToStdoutCB (void *pPrntStrmInfo, const char *fmtspec, va_list arglist)
 Standard callback function for use with print-to-stream for writing to stdout. More...
 
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. More...
 

Variables

OSRTPrintStream g_PrintStream
 Global PrintStream.
 

Detailed Description

Functions that allow printing diagnostic message to a stream using a callback function.

Definition in file rtxPrintStream.h.