TT_PATTERN_ARG_ADD(3)
πΈ NAME πΈ
tt_pattern_arg_add β add an argument to a pattern. You're on the tt_pattern_arg_add(library call) page, and this is literally her whole job, bestie π
β¨
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_status tt_pattern_arg_add(
Tt_pattern p,
Tt_mode n,
const char *vtype,
const char *value);
π¦ DESCRIPTION π¦
Okay so tt_pattern_arg_add adds an argument to a pattern. Real talk: the application must add pattern arguments before it registers the pattern with the ToolTalk service β that's the order, no skipping, periodt. π
The p argument is the opaque handle for the pattern involved in this operation. 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 type ALL matches any argument value type. The value argument is the value to fill in. This value must be an unsigned character string. A NULL matches any value. π«Ά
π₯ RETURN VALUE π₯
Upon successful completion, the tt_pattern_arg_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_NOMPβ thettsession(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. π
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_pattern_register(3),tt_pattern_barg_add(3),tt_pattern_iarg_add(3). π
And that's the page, bestie β cute little sign-off with the footer text tt_pattern_arg_add(library call), no extra date/version line in the original, just that manual-call energy π«Άπ
π¦ 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