src/fileprinter.c File Reference

#include <string.h>
#include <sys/stat.h>
#include "rdd.h"
#include "rdd_internals.h"
#include "msgprinter.h"
#include "outfile.h"

Include dependency graph for fileprinter.c:

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 Documentation


Function Documentation

static int file_close ( RDD_MSGPRINTER self,
unsigned  flags 
) [static]

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

Definition at line 97 of file fileprinter.c.

References _RDD_FILE_MSGPRINTER::stream.

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.

Here is the call graph for this function:


Variable Documentation

Initial value:

Definition at line 53 of file fileprinter.c.


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