DC_IRDA_DEVICE_FREE(3)
π DC_IRDA_DEVICE_FREE(3) π
okay so bestie, welcome to a page from the Library Functions Manual β yep, that's the manual name, and no, it's not a big deal, it's just where this little function lives. sit down, get comfy, we're learning how to clean up after ourselves π§β¨
π«Ά NAME
dc_irda_device_free β destroy the irda device and free all the resources. every last one. no crumbs left. π
π LIBRARY
you'll find this one hanging out in the library βlibdivecomputerβ β iconic, honestly.
β¨ SYNOPSIS
#include <libdivecomputer/irda.h>
void
dc_irda_device_free(dc_irda_device_t *device);
like, that's it. that's the whole call. so clean, so minimal, main character energy fr fr π
π¦ DESCRIPTION
so what does it actually do? it destroys the irda device and frees all resources. periodt. everything that thing was holding onto? gone. released. healed. πΈ
and where do you usually get one of these irda devices in the first place? bestie, you go searching for it with dc_irda_iterator_new(3). that's the plug, that's where it comes from, iykyk π₯
lowkey important: once you free it, it's freed. don't go touching it after. that's giving undefined behaviour and we do not claim that energy π
π SEE ALSO
dc_irda_iterator_new(3)β the way you find the device in the first place β¨
π AUTHORS
the library βlibdivecomputerβ was written by Jef Driesen, jef@libdivecomputer.org β absolute legend, we stan π«Ά
and this very manpage was written by Vincent Hagen, vinnie@script4web.nl. thank you for your service, king π
and that's the whole vibe check! this page shipped with Debian, dated June 5, 2020 β so it's vintage, it's classic, it ate and left zero crumbs πβπ
π¦ where this page comes from
- nixos 26.05: libdivecomputer 0.9.0
- nixpkgs unstable: libdivecomputer 0.9.0
- Copyright (C) 2020 Vincent Hagen <vinnie@script4web.nl>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms