TT_PATTERN_BARG_ADD(3)
π
tt_pattern_barg_add (library call) β add an argument with embedded nulls to a pattern, bestie
β¨ NAME β¨
tt_pattern_barg_add β add an argument with a value that contains embedded nulls to a pattern. π
π¦ SYNOPSIS π¦
#include &<Tt/tt_c.h>
Tt_status tt_pattern_barg_add(
Tt_pattern m,
Tt_mode n,
const char *vtype,
const unsigned char *value,
int len);
πΈ DESCRIPTION πΈ
okay so tt_pattern_barg_add is the function that adds an argument with a value that contains embedded nulls to a pattern. literally what it says on the tin, and it ate. π
The m 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. Type ALL matches any argument value type. no cap. β¨
The ToolTalk service treats the value as an opaque byte string. To pass structured data, the application and the receiving application must encode and decode these unique values. The most common method to use is XDR. π§
The value argument is the value to be added. NULL matches any value. π
The len argument is the length of the value in bytes. π
π RETURN VALUE π
Upon successful completion, the tt_pattern_barg_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 π₯
xoxo, tt_pattern_barg_add β source/version: library call; date: she didnβt leave one, so this bestie is timeless ππ
β¨
π¦ 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