recorder_configure_output - Man Page

Configure recorder output record_configure_show ā€” Configure recorder output function record_configure_format ā€” Configure recorder event formatting

Synopsis

#include <recorder/recorder.h>

typedef unsigned (*recorder_show_fn) (const char *text,
                                      size_tlen,
                                      void *output);
typedef void (*recorder_format_fn)(recorder_show_fn show,
                                   void *output,
                                   const char * label,
                                   const char *location,
                                   uintptr_torder,
                                   uintptr_ttimestamp,
                                   const char *message);

void *recorder_configure_output(void *output);
recorder_show_fn   recorder_configure_show(recorder_show_fnshow);
recorder_format_fn recorder_configure_format(recorder_format_fnformat);

Description

The recorder_configure_output() function configures the output for the recorder output function. The default output function assumes that output is a FILE * and uses stderr if NULL. Since recorder tracing is often used for debugging, it may be a good idea to make the output non-buffered using setvbuf(output,NULL,_IONBF,0);

The recorder_configure_show() function configures the output funtion for the recorder. This output function receives the output value defined by recorder_configure_output.

The recorder_configure_format() function configures the event record formatting function.

Return Value

The functions return the previously configured value.

Bugs

Bugs should be reported using https://github.com/c3d/recorder/issues.

See Also

record(3), record_fast(3),
RECORDER_DEFINE(3), RECORDER_DECLARE(3)
recorder_trace_set(3) RECORDER_TRACE(3)
recorder_dump(3), recorder_dump_for(3),

Additional documentation and tutorials can be found at https://github.com/c3d/recorder.

Author

Written by Christophe de Dinechin

Referenced By

record(3), RECORDER(3), recorder_configure_type(3), recorder_dump(3), recorder_trace_set(3).

The man pages recorder_configure_format(3) and recorder_configure_show(3) are aliases of recorder_configure_output(3).

2019-03-09 1.0 Recorder Library