TT_MESSAGE_CONTEXT_BVAL(3)

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

πŸ’– tt_message_context_bval(3) β€” library call edition πŸ’–

okay bestie, welcome to the library-call page for tt_message_context_bval β€” it's giving "retrieve the byte-array value and length of a message's context" energy, and we're gonna get through it together 🫢✨


✨ NAME ✨

tt_message_context_bval β€” retrieve the byte-array value and length of a message's context. periodt πŸ’…

🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

The tt_message_context_bval function retrieves the byte-array value and length of a message's context. no cap, that's the whole mission 🌈

If there is no context slot associated with slotname, tt_message_context_bval returns zero in slotname and zero in len. yes, literally zero in both spots β€” that's the tea, bestie πŸ“

The m argument is the opaque handle for the message involved in this operation.

The slotname argument describes the context of this message.

The value argument points to the location to return the value.

The len argument is the length of the value in bytes.

that's the whole cast of characters, and they're all doing their little jobs πŸ’œ

πŸŽ€ RETURN VALUE πŸŽ€

Upon successful completion, the tt_message_context_bval 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_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. 🚩

πŸ’… SEE ALSO πŸ’…

go read those, iykyk πŸ“šβœ¨


source/version and date check: the footer here is just tt_message_context_bval(library call) β€” so that's the official sign-off tea, bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from