1
2
3record(3)                      Recorder Library                      record(3)
4
5
6

NAME

8       record_configure_output  -  Configure  recorder   output record_config‐
9       ure_show - Configure recorder output function record_configure_format -
10       Configure recorder event formatting
11
12
13

SYNOPSIS

15       #include <recorder/recorder.h>
16
17       typedef unsigned (*recorder_show_fn) (const char *text,
18                                             size_tlen,
19                                             void *output);
20       typedef void (*recorder_format_fn)(recorder_show_fn show,
21                                          void *output,
22                                          const char * label,
23                                          const char *location,
24                                          uintptr_torder,
25                                          uintptr_ttimestamp,
26                                          const char *message);
27
28       void *recorder_configure_output(void *output);
29       recorder_show_fn   recorder_configure_show(recorder_show_fnshow);
30       recorder_format_fn recorder_configure_format(recorder_format_fnformat);
31
32

DESCRIPTION

34       The  recorder_configure_output() function configures the output for the
35       recorder output function. The default output function assumes that out‐
36       put  is  a  FILE  *  and uses stderr if NULL. Since recorder tracing is
37       often used for debugging, it may be a good idea to make the output non-
38       buffered using setvbuf(output,NULL,_IONBF,0);
39
40
41       The  recorder_configure_show()  function  configures the output funtion
42       for the recorder.  This  output  function  receives  the  output  value
43       defined by recorder_configure_output.
44
45
46       The  recorder_configure_format()  function  configures the event record
47       formatting function.
48
49
50

RETURN VALUE

52       The functions return the previously configured value.
53
54
55
56
57

BUGS

59       Bugs should be reported using https://github.com/c3d/recorder/issues.
60
61
62

SEE ALSO

64       record(3), record_fast(3),
65       RECORDER_DEFINE(3), RECORDER_DECLARE(3)
66       recorder_trace_set(3) RECORDER_TRACE(3)
67       recorder_dump(3), recorder_dump_for(3),
68
69
70       Additional   documentation   and   tutorials   can    be    found    at
71       https://github.com/c3d/recorder.
72
73
74

AUTHOR

76       Written by Christophe de Dinechin
77
78
79
801.0                               2019-03-09                         record(3)
Impressum