1LIBXO(3)                 BSD Library Functions Manual                 LIBXO(3)
2

NAME

4     xo_set_style, xo_set_style_name — set the output style for a libxo handle
5

LIBRARY

7     library “libxo”
8

SYNOPSIS

10     #include <libxo/xo.h>
11
12     void
13     xo_set_style(xo_handle_t *handle, unsigned style);
14
15     int
16     xo_set_style_name(xo_handle_t *handle, const char *style);
17

DESCRIPTION

19     Use the xo_set_style() function to set the output style for a handle.  To
20     use the default handle, pass a NULL handle.  The set of output styles
21     used by libxo is:
22
23     Flag          Description
24     XO_STYLE_TEXT  Traditional text output
25     XO_STYLE_XML   XML encoded data
26     XO_STYLE_JSON  JSON encoded data
27     XO_STYLE_HTML  HTML encoded data
28
29     The xo_set_style_name() function can be used to set the style based on a
30     name encoded as a string.  The name can be any of the styles: "text",
31     "xml", "json", or "html".
32
33               EXAMPLE:
34                   xo_set_style_name(NULL, "html");
35

SEE ALSO

37     xo_emit(3), libxo(3)
38

HISTORY

40     The libxo library first appeared in FreeBSD 11.0.
41

AUTHORS

43     libxo was written by Phil Shafer <phil@freebsd.org>.
44
45

ADDITIONAL DOCUMENTATION

47     FreeBSD uses libxo version 1.6.0.  Complete documentation can be found on
48     github:
49
50           https://juniper.github.io/libxo/1.6.0/html/index.html
51
52     libxo lives on github as:
53
54           https://github.com/Juniper/libxo
55
56     The latest release of libxo is available at:
57
58           https://github.com/Juniper/libxo/releases
59

HISTORY

61     The libxo library was added in FreeBSD 11.0.
62

AUTHOR

64     Phil Shafer
65
66BSD                            December 4, 2014                            BSD
Impressum