|
libfossil
|
An interface which encapsulates data for managing an output destination, primarily intended for use with fsl_output(). More...
#include "util.h"
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). | |
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.
| fsl_flush_f fsl_outputer::flush |
| fsl_output_f fsl_outputer::out |
| void* fsl_outputer::state |