TICKIT_WATCH_CANCEL(3)

πŸ“¦
version 0.4.6 Β· 2 versions
  • 0.4.6 Β· alpine 3.24, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.4.1 Β· ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– TICKIT_WATCH_CANCEL(3) πŸ’–

okay bestie, welcome to the Library Functions Manual page for tickit_watch_cancel(3) β€” yes that's the manual section name, we're being fancy today ✨


🌸 NAME 🌸

tickit_watch_cancel β€” remove a previously-installed callback πŸ—‘οΈβœ¨


πŸŽ€ SYNOPSIS πŸŽ€

#include <tickit.h>

void tickit_watch_cancel(Tickit *t, void *watch);

Link with -ltickit. πŸ”—


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, tickit_watch_cancel() does the undoing πŸ’… β€” it removes a callback that you previously registered, and you tell it which one by passing the identifier pointer that got returned to you when you added it in the first place. like, remember that pointer? yeah, that one. hold onto it. that's your ticket 🎟️

and here's the lil plot twist: if the callback had been added with the TICKIT_BIND_UNBIND flag, then it will be invoked with the TICKIT_EV_UNBIND as it's being removed. so it gets one last little goodbye moment before it's gone 😭🫢 β€” iconic behavior honestly.


⭐ RETURN VALUE ⭐

tickit_watch_cancel() returns no value. nothing. nada. void. it's giving mysterious and silent 🧚


🌈 SEE ALSO 🌈


okay that's the whole page bestie, mwah πŸ’‹ this was the TICKIT_WATCH_CANCEL(3) entry from the Library Functions Manual β€” go forth and cancel your callbacks responsibly, no cap πŸ”₯πŸ‘‘πŸ’œ