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 set custom writer functions for a libxo handle
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.
60 library first appeared in
65 .An Phil Shafer Aq Mt phil@freebsd.org .