src/stdioprinter.c File Reference

#include <string.h>
#include "rdd.h"
#include "rdd_internals.h"
#include "msgprinter.h"

Include dependency graph for stdioprinter.c:

Go to the source code of this file.

Data Structures

struct  _RDD_STDIO_MSGPRINTER

Typedefs

typedef struct
_RDD_STDIO_MSGPRINTER 
RDD_STDIO_MSGPRINTER

Functions

int rdd_mp_open_stdio_printer (RDD_MSGPRINTER **printer, FILE *stream)
 Opens a stream printer. A stream printer prints all its messages to a standard I/O file stream (stream).
static int stdio_close (RDD_MSGPRINTER *printer, unsigned flags)
static void stdio_print (RDD_MSGPRINTER *printer, rdd_message_t type, int errcode, const char *msg)

Variables

static RDD_MSGPRINTER_OPS stdio_ops


Typedef Documentation


Function Documentation

int rdd_mp_open_stdio_printer ( RDD_MSGPRINTER **  printer,
FILE *  stream 
)

Opens a stream printer. A stream printer prints all its messages to a standard I/O file stream (stream).

Definition at line 57 of file stdioprinter.c.

References rdd_mp_open_printer(), RDD_OK, _RDD_MSGPRINTER::state, and _RDD_STDIO_MSGPRINTER::stream.

Here is the call graph for this function:

static int stdio_close ( RDD_MSGPRINTER printer,
unsigned  flags 
) [static]

Definition at line 85 of file stdioprinter.c.

References RDD_OK, and _RDD_MSGPRINTER::state.

static void stdio_print ( RDD_MSGPRINTER printer,
rdd_message_t  type,
int  errcode,
const char *  msg 
) [static]

Definition at line 76 of file stdioprinter.c.

References _RDD_MSGPRINTER::state, and _RDD_STDIO_MSGPRINTER::stream.


Variable Documentation

Initial value:

Definition at line 51 of file stdioprinter.c.


Generated on Sun Feb 6 12:36:38 2011 for rdd by  doxygen 1.5.6