TT_MESSAGE_XCONTEXT_SET(3)

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

🌸 NAME 🌸

okay so this is tt_message_xcontext_set from the library call manual β€” the function that sets the XDR-interpreted byte-array value of a message's context. periodt πŸ’…

✨ SYNOPSIS ✨

#include &<Tt/tt_c.h>
Tt_status tt_message_xcontext_set(
Tt_message m,
const char *slotname,
xdrproc_t xdr_proc,
void *value);

πŸ’– DESCRIPTION πŸ’–

Bestie, tt_message_xcontext_set sets the XDR-interpreted byte-array value of a message's context. That's the whole main-character move ✨.

  • 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.
  • xdr_proc β€” points to the XDR procedure to be used to serialize the data pointed to by value.
  • value β€” also, literally the data to be serialized. no cap.

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, tt_message_xcontext_set returns the status of the operation as one of these 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 does not point at an object of the correct type for this operation. πŸ’€
  • TT_ERR_SLOTNAME β€” The specified slotname is syntactically invalid. πŸ™ˆ
  • TT_ERR_XDR β€” The XDR procedure failed on the given data, or evaluated to a zero-length expression. πŸ˜΅β€πŸ’«

πŸ¦‹ SEE ALSO πŸ¦‹


Cute sign-off from the footer: this page lives in the library call manual under tt_message_xcontext_set, and the source/version/date situation is just that library-call tag β€” no extra date or version text on this one, bestie πŸŽ€πŸ’–

πŸ“¦ where this page comes from