TTTK_MESSAGE_ABANDON(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’– tttk_message_abandon β€” library call πŸ’–

okay so bestie, welcome to the tttk_message_abandon page from the library call manual. Buckle up, we're finalizing messages with main character energy. πŸŽ€

✨ NAME ✨

tttk_message_abandon β€” finalize a message properly. That's it, that's the name, and yes she's about to clean up a message she does not understand. πŸ’…

🌸 SYNOPSIS 🌸

#include &<Tt/tttk.h>
Tt_status tttk_message_abandon(
Tt_message msg);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the situation, bestie: an app gets a message it does not understand, and it just wants to get rid of it. That's exactly when tttk_message_abandon comes in. It fails or rejects msg if appropriate, and then it destroys it. Poof. Gone. πŸ’¨

But plot twist: tttk_message_abandon will reject or fail the message only if msg is a TT_REQUEST in Tt_state TT_SENT. If it has a Tt_address of TT_HANDLER or a tt_message_status of TT_WRN_START_MESSAGE, then it fails the message; otherwise, it rejects it. In either case, tttk_message_abandon gives msg a message status (see tt_message_status(3)) of TT_DESKTOP_ENOTSUP. No cap. 🫢

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the tttk_message_abandon function returns the status of the operation as one of the following Tt_status values:

  • TT_OK β€” The operation completed successfully. slay. ✨
  • TT_ERR_NOMP β€” The ttsession(1) process is not running and the ToolTalk service cannot restart it. 😭
  • TT_ERR_NOTHANDLER β€” This application is not the handler for this message. rude, but okay. πŸ’€
  • TT_ERR_POINTER β€” The pointer passed does not point to an object of the correct type for this operation. check ur pointer bestie. πŸ™ˆ

🌈 SEE ALSO 🌈


and that's the whole page, bestie β€” the footer/source-version-date situation is literally just tttk_message_abandon(library call), with no extra source/version/date line hiding in the original, so consider this your cute sign-off. πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from