libfossil
fsl_outputer Struct Reference

An interface which encapsulates data for managing an output destination, primarily intended for use with fsl_output(). More...

#include "util.h"

Collaboration diagram for fsl_outputer:

Data Fields

fsl_flush_f flush
 flush() implementation.
fsl_output_f out
 Output channel.
void * state
 State to be used when calling this->out(), namely: this->out( this->state, ... ) and this->flush(this->state).

Detailed Description

An interface which encapsulates data for managing an output destination, primarily intended for use with fsl_output().

Why abstract it to this level? So that we can do interesting things like output to buffers, files, sockets, etc., using the core output mechanism. e.g. so script bindings can send their output to the same channel used by the library and other library clients.

Definition at line 337 of file util.h.

Field Documentation

◆ flush

fsl_flush_f fsl_outputer::flush

flush() implementation.

This may be NULL for most uses of this class. Cases which specifically require it must document that requirement so.

Definition at line 347 of file util.h.

◆ out

fsl_output_f fsl_outputer::out

Output channel.

Definition at line 341 of file util.h.

◆ state

void* fsl_outputer::state

State to be used when calling this->out(), namely: this->out( this->state, ... ) and this->flush(this->state).

Definition at line 352 of file util.h.


The documentation for this struct was generated from the following file: