src/bcastprinter.c File Reference

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

Include dependency graph for bcastprinter.c:

Go to the source code of this file.

Data Structures

struct  _RDD_BCASTPRINTER_STATE

Typedefs

typedef struct
_RDD_BCASTPRINTER_STATE 
RDD_BCASTPRINTER_STATE

Functions

static int bcastprinter_close (RDD_MSGPRINTER *self, unsigned flags)
static void bcastprinter_print (RDD_MSGPRINTER *self, rdd_message_t mesg_type, int errcode, const char *mesg)
int rdd_mp_open_bcastprinter (RDD_MSGPRINTER **self, unsigned nprinter, RDD_MSGPRINTER **printers)
 Opens a broadcast printer. A broadcast printer is a stackable printer that prints all its messages to all its parent printers.

Variables

static RDD_MSGPRINTER_OPS bcast_ops


Typedef Documentation


Function Documentation

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

Definition at line 103 of file bcastprinter.c.

References _RDD_BCASTPRINTER_STATE::nprinter, _RDD_BCASTPRINTER_STATE::printers, rdd_mp_close(), RDD_MP_RECURSE, and RDD_OK.

Here is the call graph for this function:

static void bcastprinter_print ( RDD_MSGPRINTER self,
rdd_message_t  mesg_type,
int  errcode,
const char *  mesg 
) [static]

Definition at line 93 of file bcastprinter.c.

References _RDD_BCASTPRINTER_STATE::nprinter, _RDD_BCASTPRINTER_STATE::printers, and rdd_mp_message().

Here is the call graph for this function:

int rdd_mp_open_bcastprinter ( RDD_MSGPRINTER **  self,
unsigned  nprinter,
RDD_MSGPRINTER **  printers 
)

Opens a broadcast printer. A broadcast printer is a stackable printer that prints all its messages to all its parent printers.

Definition at line 57 of file bcastprinter.c.

References _RDD_BCASTPRINTER_STATE::nprinter, _RDD_BCASTPRINTER_STATE::printers, RDD_BADARG, rdd_mp_open_printer(), RDD_NOMEM, RDD_OK, and _RDD_MSGPRINTER::state.

Here is the call graph for this function:


Variable Documentation

Initial value:

Definition at line 52 of file bcastprinter.c.


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