#include <string.h>
#include <sys/stat.h>
#include "rdd.h"
#include "rdd_internals.h"
#include "msgprinter.h"
#include "outfile.h"
Go to the source code of this file.
Data Structures | |
struct | _RDD_FILE_MSGPRINTER |
Typedefs | |
typedef struct _RDD_FILE_MSGPRINTER | RDD_FILE_MSGPRINTER |
Functions | |
static int | file_close (RDD_MSGPRINTER *self, unsigned flags) |
static void | file_print (RDD_MSGPRINTER *self, rdd_message_t type, int errcode, const char *msg) |
int | rdd_mp_open_file_printer (RDD_MSGPRINTER **self, const char *path, const int force_overwrite) |
Opens a file printer. A file printer prints all its messages to a named output file. | |
Variables | |
static RDD_MSGPRINTER_OPS | file_ops |
typedef struct _RDD_FILE_MSGPRINTER RDD_FILE_MSGPRINTER |
static int file_close | ( | RDD_MSGPRINTER * | self, | |
unsigned | flags | |||
) | [static] |
Definition at line 106 of file fileprinter.c.
References _RDD_FILE_MSGPRINTER::path, RDD_ECLOSE, RDD_MP_READONLY, RDD_OK, and _RDD_FILE_MSGPRINTER::stream.
static void file_print | ( | RDD_MSGPRINTER * | self, | |
rdd_message_t | type, | |||
int | errcode, | |||
const char * | msg | |||
) | [static] |
int rdd_mp_open_file_printer | ( | RDD_MSGPRINTER ** | self, | |
const char * | path, | |||
const int | force_overwrite | |||
) |
Opens a file printer. A file printer prints all its messages to a named output file.
Definition at line 59 of file fileprinter.c.
References error(), outfile_fopen(), _RDD_FILE_MSGPRINTER::path, rdd_mp_open_printer(), RDD_NOMEM, RDD_OK, _RDD_MSGPRINTER::state, and _RDD_FILE_MSGPRINTER::stream.
RDD_MSGPRINTER_OPS file_ops [static] |