TT_MESSAGE_ARG_MODE(3)
π
tt_message_arg_mode β the library call era, bestie
okay so this page is tt_message_arg_mode(library call) and honestly? she's a little legend. picture this: you've got a message, you've got arguments, and you wanna know which direction the tea flows β who writes it, who reads it. that's her whole job. slay.
β¨ NAME β¨
tt_message_arg_mode β return the mode of a message argument π
π¦ SYNOPSIS π¦
#include <Tt/tt_c.h>
Tt_mode tt_message_arg_mode(
Tt_message m,
int n);
πΈ DESCRIPTION πΈ
so like, tt_message_arg_mode returns the mode of the *n*th message argument. that's it. that's the vibe check.
okay now the details, because details are literally everything:
- the
margument is the opaque handle for the message involved in this operation. - the
nargument is the number of the argument to be returned. - and the first argument is numbered zero. yes bestie, zero-indexed. as is tradition. π
π RETURN VALUE π
upon successful completion, tt_message_arg_mode returns a value that specifies who (sender, handler, observers) writes and reads a message argument. iykyk β the modes are giving very specific energy:
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. π₯ everyone gets a turn, no gatekeeping.
and here's the part where you gotta stay sharp: the application can use tt_int_error(3) to extract one of the following Tt_status values from the Tt_mode integer return value:
TT_OKβ the operation completed successfully. we love a win πTT_ERR_NOMPβ thettsession(1)process is not running and the ToolTalk service cannot restart it. π the whole service is just... not home.TT_ERR_NUMβ the integer value passed was invalid (out of range). you asked for argument number what now πTT_ERR_POINTERβ the pointer passed does not point to an object of the correct type for this operation. wrong object, wrong vibe, hard pass π«Ά
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_int_error(3).
and that's the whole page, bestie β no cap. this little icon was living in the tt_message_arg_mode(library call) section, and the footer said the exact same thing: tt_message_arg_mode(library call). no fancy date stamp, no version drama, just that. periods, quietly iconic. π§π
π¦ 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