#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_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 struct _RDD_BCASTPRINTER_STATE RDD_BCASTPRINTER_STATE |
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.
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().
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.
RDD_MSGPRINTER_OPS bcast_ops [static] |
Initial value:
Definition at line 52 of file bcastprinter.c.