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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

BUGS

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

SEE ALSO

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

AUTHOR

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