TT_MESSAGE_DISPOSITION_SET(3)

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

okay so bestie, welcome to tt_message_disposition_set from the tt_message_...osition_set(library call) manual β€” yes, the header/footer vibes are truncated and we are respecting the lore. πŸ’…βœ¨

🌸 NAME 🌸

tt_message_disposition_set β€” set the disposition attribute for a message. Periodt. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

#include &<Tt/tt_c.h>
Tt_status tt_message_disposition_set(
Tt_message m,
Tt_disposition r);

✨ DESCRIPTION ✨

The tt_message_disposition_set function sets the disposition attribute for the specified message. No cap, that’s the whole mission. 🫢

The m argument is the opaque handle for the message involved in this operation. Slay, but opaque means you’re not peeking inside. πŸ™ˆ

The r argument indicates whether an instance of the receiving process is to be started to receive the message immediately, or whether the message is to be queued until the receiving process is started at a later time. It’s giving β€œnow or later” main character energy. ⏳

The following values are defined:

  • TT_DISCARD β€” There is no receiver for this message. The message will be returned to the sender with the Tt_status field containing TT_FAILED. Lowkey a sad return-to-sender moment. 😭
  • TT_QUEUE β€” Queue the message until a process of the proper ptype receives the message. Patient queen behavior. πŸ‘‘
  • TT_START β€” Attempt to start a process of the proper ptype if none is running. Go go go! πŸ”₯
  • TT_QUEUE+TT_START β€” Queue the message and attempt to start a process of the proper ptype if none is running. Both? Both. πŸ’…

πŸ’€ RETURN VALUE πŸ’€

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

  • TT_OK β€” The operation completed successfully. We love a win. πŸŽ€
  • TT_ERR_NOMP β€” The ttsession(1) process is not running and the ToolTalk service cannot restart it. Big yikes. 😭
  • TT_ERR_POINTER β€” The pointer passed does not point to an object of the correct type for this operation. Not the vibe check passing. πŸ’€

🌈 SEE ALSO 🌈

Tt/tt_c.h - Tttt_c(5). β€” yes, exactly that, bestie. Go read the related lore. πŸ“šβœ¨


Cute sign-off, fr fr: the footer in the original is the same truncated title/manual-call situation, tt_message_...osition_set(library call), and there’s no separate source/version/date text shown β€” so that’s the whole footer tea. Byeee, bestie! πŸ’–πŸ«Ά

πŸ“¦ where this page comes from