libexplain  1.4.D001
Data Structures | Typedefs | Functions | Variables
libexplain/output/tee.c File Reference
#include <libexplain/output.h>

Go to the source code of this file.

Data Structures

struct  explain_output_tee_t

Typedefs

typedef struct explain_output_tee_t explain_output_tee_t

Functions

static void tee_destructor (explain_output_t *op)
static void tee_message (explain_output_t *op, const char *text)
static void tee_exit (explain_output_t *op, int status)
explain_output_texplain_output_tee_new (explain_output_t *first, explain_output_t *second)

Variables

static const
explain_output_vtable_t 
vtable

Typedef Documentation

Definition at line 23 of file tee.c.


Function Documentation

The explain_output_tee_new function may be used to create a new dynamically allocated instance of an explain_output_t class that writes to two other output classes.

Parameters:
firstThe first output class to write to.
secondThe second output class to write to.
Returns:
NULL on error (i.e. malloc failed), or a pointer to a new dynamically allocated instance of the syslog class.
Note:
The output subsystem will "own" the first and second objects after this call. You may not make any reference to these pointers ever again. The output subsystem will destroy these objects and free the memory when it feels like it.

Definition at line 77 of file tee.c.

static void tee_destructor ( explain_output_t op) [static]

Definition at line 33 of file tee.c.

static void tee_exit ( explain_output_t op,
int  status 
) [static]

Definition at line 55 of file tee.c.

static void tee_message ( explain_output_t op,
const char *  text 
) [static]

Definition at line 44 of file tee.c.


Variable Documentation

Initial value:

Definition at line 67 of file tee.c.