24#ifndef M_ASYNC_WRITER_H
25#define M_ASYNC_WRITER_H
27#include <mstdlib/mstdlib.h>
M_bool M_async_writer_start(M_async_writer_t *writer)
M_bool M_async_writer_set_command_block(M_async_writer_t *writer, M_uint64 write_command)
M_async_writer_line_end_mode_t
Definition: m_async_writer.h:43
M_async_writer_t * M_async_writer_create(size_t max_bytes, M_async_write_cb_t write_cb, void *write_thunk, M_async_thunk_stop_cb_t stop_cb, M_async_thunk_destroy_cb_t destroy_cb, M_async_writer_line_end_mode_t mode)
void(* M_async_thunk_stop_cb_t)(void *thunk)
Definition: m_async_writer.h:77
M_bool M_async_writer_set_command(M_async_writer_t *writer, M_uint64 write_command, M_bool force)
void * M_async_writer_get_thunk(M_async_writer_t *writer)
void(* M_async_thunk_destroy_cb_t)(void *thunk)
Definition: m_async_writer.h:89
M_bool M_async_writer_destroy_blocking(M_async_writer_t *writer, M_bool flush, M_uint64 timeout_ms)
struct M_async_writer M_async_writer_t
Definition: m_async_writer.h:94
void M_async_writer_destroy(M_async_writer_t *writer, M_bool flush)
M_bool M_async_writer_is_alive(M_async_writer_t *writer, M_uint64 timeout_ms)
const char * M_async_writer_get_line_end(M_async_writer_t *writer)
M_bool(* M_async_write_cb_t)(char *msg, M_uint64 cmd, void *thunk)
Definition: m_async_writer.h:68
M_bool M_async_writer_is_running(M_async_writer_t *writer)
M_bool M_async_writer_write(M_async_writer_t *writer, const char *msg)
void M_async_writer_stop(M_async_writer_t *writer)
void M_async_writer_set_max_bytes(M_async_writer_t *writer, size_t max_bytes)
@ M_ASYNC_WRITER_LINE_END_UNIX
Definition: m_async_writer.h:45
@ M_ASYNC_WRITER_LINE_END_NATIVE
Definition: m_async_writer.h:44
@ M_ASYNC_WRITER_LINE_END_WINDOWS
Definition: m_async_writer.h:46