#include <string.h>
#include "rdd.h"
#include "rdd_internals.h"
#include "msgprinter.h"
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 struct _RDD_STDIO_MSGPRINTER RDD_STDIO_MSGPRINTER |
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.
static int stdio_close | ( | RDD_MSGPRINTER * | printer, | |
unsigned | flags | |||
) | [static] |
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.
RDD_MSGPRINTER_OPS stdio_ops [static] |