TT_MESSAGE_BCONTEXT_SET(3)

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

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

okay bestie, this is the library call manual page for setting a message context’s byte-array value, and we’re gonna get through it together. ✨

🌸 NAME 🌸

tt_message_bcontext_set β€” set the byte-array value of a message’s context.

πŸ“œ SYNOPSIS πŸ“œ

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

πŸ’… DESCRIPTION πŸ’…

The tt_message_bcontext_set function sets the byte-array value of a message’s context.

It literally overwrites any previous value associated with slotname β€” like, old value? gone, bestie. periodt.

  • m β€” the opaque handle for the message involved in this operation.
  • slotname β€” describes the slotname in this message.
  • value β€” the byte string with the contents for the message argument.
  • length β€” the length of the value in bytes.

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, tt_message_bcontext_set 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 🫢


xoxo πŸ’– that’s the whole page. The footer on this one is tt_message_bcontext_set(library call) β€” so the source/version tag is library call, and there’s no date line, just vibes and a manual name. πŸŽ€

πŸ“¦ where this page comes from