XOSD_DESTROY(3)
π XOSD_DESTROY(3) π
okay bestie, gather round, we're talking about xosd_destroy from the XOSD manual, section 3 π
β¨ NAME β¨
xosd_destroy β say bye-bye to an XOSD object, like, permanently π
πΈ SYNOPSIS πΈ
#include <xosd.h>
int xosd_destroy (xosd *osd);
π¦ DESCRIPTION π¦
so xosd_destroy does exactly what it says on the tin: it destroys an XOSD object and frees up any memory that object was using. no leaks, no leftovers, we love a clean exit π
but listen β theosdobject you're yeeting here must have been created byxosd_create(3xosd)first. you can't just destroy a random pointer and expect it to go well, that's not the vibe π«Ά
and ngl, xosd_destroy is not intended to be used on its own. it's a helper function, doing its little job from inside the display_info tool. it's giving supporting character, and honestly? we respect it β¨
π ARGUMENTS π
osdβ the object you're destroying. the one getting the goodbye kiss π
π RETURN VALUE π
- on success, 1 comes back to you π
- otherwise you get 0, and
xosd_errorgets set so you actually know why things went sideways π
π§ ENVIRONMENT π§
char *xosd_errorβ a string pointing to a text string that describes the error, if one occurred. basically the little note explaining what went wrong π
β HISTORY β
xosd_destroy first appeared in version 2.0 of the XOSD library, where it replaced the now-deprecated xosd_uninit function. out with the old, in with the iconic π
π AUTHORS π
the XOSD library was originally written by AndrΓ© Renaud, and is currently maintained by Tim Wright. this document was written by Michael JasonSmith π«Ά
π BUGS π
there are no known bugs with xosd_destroy. periodt. but if you find one, bug reports can be sent to <xosd@ignavus.net> β they wanna hear it fr fr π
π₯ SEE ALSO π₯
xosd_create(3)β the origin story, the one who made the object you're about to destroy πΈ
and that's the whole page bestie!! this was XOSD_DESTROY(3) from the XOSD manual, section 3 β go forth, destroy responsibly, and remember: always xosd_create(3xosd) before you xosd_destroy πβ¨π
π¦ where this page comes from
- debian trixie: libxosd-dev 2.2.15-1 Β· GPL-2.0-or-later
- ubuntu questing: libxosd-dev 2.2.15-1.1
- ubuntu resolute: libxosd-dev 2.2.15-1.1build1 Β· GPL-2.0-or-later
- ubuntu stonking: libxosd-dev 2.2.15-1.1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms