TT_MESSAGE_XARG_ADD(3)
πΈ NAME πΈ
okay so tt_message_xarg_add is a library call manual page, bestie β it adds an argument with an XDR-interpreted value to a message object. β¨
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_status tt_message_xarg_add(
Tt_message m,
Tt_mode n,
const char *vtype,
xdrproc_t xdr_proc,
void *value);
π DESCRIPTION π
The tt_message_xarg_add function adds an argument with an XDR-interpreted value to a message object. That's the whole main-character move: argument goes in, XDR interprets the value, message object gets updated. π
π¨ To change existing argument values, the application must use only modesTT_OUTorTT_INOUT. No other mode for that, periodt.
π Adding arguments when replying to a message produces undefined results. Not sketchy in a fun way β sketchy in a βplease don'tβ way.
The m argument is the opaque handle for the message involved in this operation. It's giving βyou don't need to know what's inside, just hold the handle.β π«Ά
The n argument specifies who (sender, handler, observers) writes and reads a message argument. The following modes are defined:
TT_INβ The argument is written by the sender and read by the handler and any observers.TT_OUTβ The argument is written by the handler and read by the sender and any reply observers.TT_INOUTβ The argument is written by the sender and the handler and read by all.
The vtype argument describes the type of argument data being added. The xdr_proc argument points to the XDR procedure to be used to serialize the data pointed to by value. The value argument is the data to be serialized. Literally the payload, bestie. π
π₯ RETURN VALUE π₯
Upon successful completion, the tt_message_xarg_add function returns the status of the operation as one of the following Tt_status values:
TT_OKβ The operation completed successfully. slay. βTT_ERR_MODEβ The specifiedTt_modeis invalid. mode vibe check failed. πTT_ERR_NOMPβ Thettsession(1)process is not running and the ToolTalk service cannot restart it. the session said βnot today.β πTT_ERR_POINTERβ The pointer passed does not point to an object of the correct type for this operation. wrong pointer energy, fr fr.TT_ERR_XDRβ The XDR procedure failed on the given data, or evaluated to a zero-length expression. XDR said nope. π
π SEE ALSO π
Tt/tt_c.h - Tttt_c(5)
sign-off: tt_message_xarg_add(library call) β that's the footer label, source/version/date tea included as shown, and no extra numbers beyond it, periodt π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms