|
Veritable Lasagna
An Allocator & Data Structure Library for C.
|
Virtual function table for a log sink. More...
#include <vl_log.h>
Collaboration diagram for vl_log_sink_vtbl:Data Fields | |
| void(* | write )(void *sink_data, const char *msg, vl_memsize_t len) |
| Write a message to the sink. | |
| void(* | flush )(void *sink_data) |
| Flush any buffered data held by the sink. | |
| void(* | destroy )(void *sink_data) |
| Destroy sink state and release owned resources. | |
Virtual function table for a log sink.
Each sink implementation supplies callbacks that allow a logger to:
The sink_data pointer passed to these functions is the same pointer stored in the corresponding vl_log_sink.
| void(* vl_log_sink_vtbl::destroy) (void *sink_data) |
Destroy sink state and release owned resources.
| sink_data | Implementation-specific sink state. |
This is called by the logger when the sink is being torn down.
| void(* vl_log_sink_vtbl::flush) (void *sink_data) |
Flush any buffered data held by the sink.
| sink_data | Implementation-specific sink state. |
| void(* vl_log_sink_vtbl::write) (void *sink_data, const char *msg, vl_memsize_t len) |
Write a message to the sink.
| sink_data | Implementation-specific sink state. |
| msg | Pointer to message bytes. |
| len | Number of bytes to write from msg. |