TT_MESSAGE_CONTEXT_IVAL(3)

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

πŸ’– NAME πŸ’–

okay so this page is tt_message_context_ival from the library call manual, and it’s literally the function for retrieving the integer value of a message’s context, bestie πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include &<Tt/tt_c.h>
Tt_status tt_message_context_ival(
Tt_message m,
const char *slotname,
int *value);

✨ DESCRIPTION ✨

The tt_message_context_ival function retrieves the integer value of a message’s context. no cap, that’s the whole mission 🫢

The m argument is the opaque handle for the message involved in this operation. main character message energy, honestly πŸ‘‘

The slotname argument describes the context of this message. The value argument points to the location to return the value. very β€œput the value right there” of it πŸ’…

if there’s no context slot associated with slotname, tt_message_context_ival returns a NULL pointer in *value β€” that’s the documented move, so don’t be surprised, bestie 😭

πŸ”₯ RETURN VALUE πŸ”₯

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

  • TT_OK β€” the operation completed successfully. βœ…
  • TT_ERR_NOMP β€” the ttsession(1) process is not running and the ToolTalk service cannot restart it. πŸ’€
  • TT_ERR_NUM β€” the integer value passed was invalid (out of range). 🚫
  • TT_ERR_POINTER β€” the pointer passed does not point to an object of the correct type for this operation. πŸ™ˆ
  • TT_ERR_SLOTNAME β€” the specified slotname is syntactically invalid. 😬
  • TT_WRN_NOTFOUND β€” the named context does not exist on the specified message. πŸ”

🌸 APPLICATION USAGE 🌸

The application can use tt_free(3) to free any data stored in the address returned by the ToolTalk API. clean up after yourself, icon behavior 🧚


πŸŽ€ SEE ALSO πŸŽ€


footer/source-version vibes: tt_message_context_ival(library call) β€” and date? not printed on this page, so I’m not making one up, bestie πŸ˜­πŸ’–

πŸ“¦ where this page comes from