TICKIT_TERM_REF(3)
π TICKIT_TERM_REF(3) π
ok so bestie, welcome to the Library Functions Manual entry for TICKIT_TERM_REF(3) β yes the manual name is literally part of the title, we love a self-referential moment β¨
πΈ NAME πΈ
tickit_term_ref, tickit_term_unref β adjust the refcount of a terminal π
π¦ SYNOPSIS π¦
#include <tickit.h>
TickitTerm *tickit_term_ref(TickitTerm *tt);
void tickit_term_unref(TickitTerm *tt);
Link with -ltickit.
β¨ DESCRIPTION β¨
ok so here's the tea, bestie β
tickit_term_ref() bumps the stored refcount of the terminal instance you hand it by one. and the cute part? it hands you back the exact same pointer argument, so you can chain it like it's nothing. it's giving "return the vibe you came in with" π
tickit_term_unref() does the opposite β it drops the stored refcount by one. and if that refcount hits zero? boom, the instance is destroyed π
when that happens, it releases every resource the instance was controlling, and it unbinds all the bound event handlers β which means handlers get invoked with the TICKIT_EV_DESTROY flag if that's appropriate for them. so yeah, your handlers get one last little goodbye moment π«Ά
heads up though: it will not close any filehandles associated with the instance. those are not its problem, no cap π
β RETURN VALUE β
tickit_term_ref()returns a terminal instance pointer πtickit_term_unref()returns no value. nothing. silence. it's done its job and left the group chat π
π SEE ALSO π
tickit_term_build(3), tickit_term(7), tickit(7)
and that's the whole page bestie, TICKIT_TERM_REF(3), Library Functions Manual, periodt π go refcount responsibly, mwah πβ¨
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms