LIBXO(3)
π LIBXO(3) π
okay bestie, this is the libxo(3) manual page β Library Functions Manual energy, and today we're talking about exactly two functions. they're little. they're powerful. they're iconic.
πΈ NAME πΈ
xo_set_version, xo_set_version_h β record content-version information in encoded output
like... they literally just write down which version of the data you're looking at. that's the whole gig. and it slays.
π LIBRARY π
library "libxo"
yep. that's the one. the library. π
β¨ SYNOPSIS β¨
#include <libxo/xo.h>
void
xo_set_version(const char *version);
void
xo_set_version_h(xo_handle_t *xop, const char *version);
two functions. two voids. zero returns. we love a no-strings-attached situation. π¦
π DESCRIPTION π
so, the xo_set_version function records a version number that gets emitted as part of the data β but only for the encoding styles XML and JSON. the other styles don't get the version, no cap.
this version number is lowkey perfect for tracking changes in the content, which means whoever's consuming your data can actually tell which version of the data model is in use. it's giving "read the room, but also read the version field." π
π₯ SEE ALSO π₯
go read those too, bestie. they're the main characters of this friend group.
β HISTORY β
the libxo library first appeared in FreeBSD 11.0. a legend was born. π«
π«Ά AUTHORS π«Ά
libxo was written by Phil Shafer <phil@freebsd.org>. thank you for your service, king. π
π ADDITIONAL DOCUMENTATION π
FreeBSD uses libxo version 1.7.5. the complete documentation can be found on github:
https://juniper.github.io/libxo/1.7.5/html/index.html
libxo lives on github as:
https://github.com/Juniper/libxo
and the latest release of libxo is available at:
https://github.com/Juniper/libxo/releases
go click. go read. go be informed. πβ¨
π HISTORY π
the libxo library was added in FreeBSD 11.0. (yes, again. it's said twice in the original and we respect the lore. β¨)
π AUTHOR π
Phil Shafer
okay that's the whole page, bestie, and it's a wrap!! π this was the LIBXO(3) page from Debian, dated December 4, 2014 β shoutout to that date for being the origin story of this whole vibe. periodt. ππ¦π
π¦ where this page comes from
- epel 9: libxo-devel 1.7.5-1.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: libxo-devel 1.7.5-2.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: libxo-devel 1.7.5-2.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: libxo-devel 1.7.5-3.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: libxo-devel 1.7.5-3.fc44 Β· LicenseRef-Callaway-BSD
- nixpkgs unstable: libxo 1.7.5
- Copyright (c) 2015, Juniper Networks, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms