Lines Matching refs:libxo
3 The libxo API
6 This section gives details about the functions in libxo, how to call
15 libxo uses "handles" to control its rendering functionality. The
19 Handles give an abstraction for libxo that encapsulates the state of a
33 Many libxo functions take a handle as their first parameter; most that
36 callers, the libxo library includes handle-less functions that
55 to further libxo function calls. The `xo_handle_t` structure is
60 :return: New libxo handle
93 :return: New libxo handle
110 tailor how libxo writes data. The `opaque` argument is recorded and
156 The libxo functions accept a set of output styles:
226 Use the `xo_set_flags` function to turn on flags for a given libxo
268 XOF_NO_ENV Do not use the :ref:`libxo-options` env var
296 Warnings allow developers to debug their interaction with libxo.
534 adds an explicit libxo handle.
551 libxo buffers data, both for performance and consistency, but also
568 but adds an explicit libxo handle.
579 data, closes open libxo constructs, and completes any pending
582 Calling this function is vital to the proper operation of libxo,
610 libxo represents two types of hierarchy: containers and lists. A
619 libxo uses terminology from YANG (:RFC:`7950`), the data modeling
637 This means libxo needs three distinct indications of hierarchy: one
938 instances inconvenient. libxo offers a "Do The Right Thing" mode, where
939 libxo will track the names of open containers, lists, and instances so
941 turn on the XOF_DTRT flag prior to making any other libxo output::
966 Note that the XOF_WARN flag will also cause libxo to track open
987 arguments. libxo-specific options are processed and removed from
1047 .. index:: --libxo
1060 one per tag. The array must be sorted by name, since libxo uses a
1064 Second, the application must inform libxo about this information using
1075 Like other libxo calls, passing `NULL` for the handle tells libxo to
1078 If the count is -1, libxo will count the elements of infop, but there
1094 using either the `xo_set_flags` function or the "`--libxo=info`"
1118 The `xo_set_allocator` function allows libxo to be used in
1136 .. index:: --libxo
1144 libxo options, including:
1164 "`--libxo`" command-line option preferable in most situations.
1176 warnings for the user. libxo wants to pass that information via the
1224 :param xop: libxo handle pointer
1232 :param xop: libxo handle pointer
1248 :param xop: libxo handle pointer
1256 :param xop: libxo handle pointer
1296 libxo automatically initializes the locale based on setting of the
1556 and distinct schemes appearing daily. While libxo provide XML, JSON,
1559 Rather than bake support for all possible encoders into libxo, the API
1560 allows them to be defined externally. libxo can then interfaces with
1561 these encoding modules using a simplistic API. libxo processes all
1566 open/close operations but can rely on libxo to pass correct data.
1568 By making a simple API, libxo internals are not exposed, insulating the
1581 libxo source contains an encoder for Concise Binary Object
1591 shared libraries, placed in the libxo/extensions directory, and loaded
1592 based on name. libxo looks for a file with the name of the encoder
1596 % ls -1 lib/libxo/extensions/*.enc
1597 lib/libxo/extensions/cbor.enc
1598 lib/libxo/extensions/test.enc
1613 within libxo. This version is currently as 1 using
1619 number used by the encoder, allowing libxo to detect version
1621 new operations, then libxo will know that an encoding library that
1646 processing model of libxo. Content is formatted within libxo, and