2 .\" # Copyright (c) 2014, Juniper Networks, Inc.
3 .\" # All rights reserved.
4 .\" # This SOFTWARE is licensed under the LICENSE provided in the
5 .\" # ../Copyright file. By downloading, installing, copying, or
6 .\" # using the SOFTWARE, you agree to be bound by the terms of that
8 .\" # Phil Shafer, July 2014
15 .Nd emit formatted output based on format string and arguments
21 .Sy typedef int (*xo_write_func_t)(void *, const char *);
23 .Sy typedef void (*xo_close_func_t)(void *);
25 .Sy typedef int (*xo_flush_func_t)(void *);
26 .Fn xo_set_writer "xo_handle_t *handle" "void *opaque"
27 "xo_write_func_t write_func"
28 "xo_close_func_t close_func"
29 "xo_flush_func_t flush_func"
33 function allows custom
42 recorded and passed back to the
44 function, allowing the function
45 to acquire context information.
49 release this opaque data and any other resources as needed.
53 flush any pending data associated with the opaque pointer.
54 .Sh ADDITIONAL DOCUMENTATION
55 Complete documentation can be found on github:
56 .Bd -literal -offset indent
57 http://juniper.github.io/libxo/libxo-manual.html
62 .Bd -literal -offset indent
63 https://github.com/Juniper/libxo
69 .Bd -literal -offset indent
70 https://github.com/Juniper/libxo/releases