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
14 .Nm xo_set_flags , xo_clear_flags
15 .Nd set operational flags for a libxo handle
21 .Fn xo_set_flags "xo_handle_t *handle" "unsigned flags"
23 .Fn xo_clear_flags "xo_handle_t *handle" "xo_xof_flags_t flags"
27 function to set the flags for a
30 To use the default handle, pass a
34 The set of valid flags include:
35 .Bl -tag -width "XOF_UNDERSCORES"
36 .It Sy "Flag Description"
40 This flag will trigger the call of the
44 when the handle is destroyed.
46 Enable color and effects in output regardless of output device.
47 .It Dv XOF_COLOR_ALLOWED
48 Allow color and effects if the output device is a terminal.
50 Display info data attributes (HTML)
52 Emit the key attribute (XML)
53 .It Dv XOF_LOG_GETTEXT
58 Log (via stderr) each syslog message (via
65 Make 'pretty printed' output, with the
66 addition of indentation and newlines to enhance the readability of
67 XML, JSON, and HTML output.
68 Text output is not affected.
69 .It Dv XOF_UNDERSCORES
70 Replaces hyphens with underscores
72 Display units (XML and HMTL)
74 Generate warnings for broken calls, triggering diagnostic
75 output (on standard error) when the library notices errors during
76 operations, or with arguments to functions.
77 Without warnings enabled, such conditions are ignored.
78 Warnings allow developers to debug their interaction with
82 can be used as a breakpoint for a debugger,
83 regardless of whether warnings are enabled.
85 Generate warnings in XML on stdout
87 Emit XPath expressions (HTML)
91 to return columns used
93 Flush output after each
100 the following additional flags can be
102 .Bl -tag -width "XOF_UNDERSCORES"
103 .It Sy "Flag Description"
105 Emit "data-xpath" attributes
107 Emit additional informational fields for HTML
116 flag enables the emission of XPath expressions detailing
117 the hierarchy of XML elements used to encode the data field, if the
118 XPATH style of output were requested.
122 the following additional flags can be
124 .Bl -tag -width "XOF_UNDERSCORES"
125 .It Sy "Flag Description"
127 Add 'key' attribute to the XML encoding for
128 field definitions that use the 'k' modifier.
129 The key attribute has
135 function turns off the given flags in a specific
143 library first appeared in
148 .An Phil Shafer Aq Mt phil@freebsd.org .