TT_MESSAGE_USER_SET(3)
π NAME π
okay so bestie, this is tt_message_user_set from the (library call) manual β and it's literally the function that stores user information associated with a message object. That's the whole name vibe. β¨
πΈ SYNOPSIS πΈ
#include &<Tt/tt_c.h>
Tt_status tt_message_user_set(
Tt_message m,
int key,
void *v);
π DESCRIPTION π
The tt_message_user_set function stores user information in data cells associated with the specified message object. π«Ά
The user data is part of the message object (that is, the storage buffer in the application); it is not part of the actual message. Data stored by the sending process in user data cells is not seen by handlers and observers. The application can use arguments for data that needs to be seen by handlers or observers. π
bestie note: user data cells are for your app's own storage-buffer situation, not for the handlers/observers to peek at. That's literally the description, no cap. π
The m argument is the opaque handle for the message involved in this operation. The key argument is the user data cell in which user information is to be stored. The v argument is the data cell, a piece of arbitrary user data that can hold a void *. π¦
π₯ RETURN VALUE π₯
Upon successful completion, the tt_message_user_set 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. πTT_ERR_PROCIDβ The specified process identifier is out of date or invalid. π
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_message_arg_add(3).
signed with glitter and zero invented timestamps: tt_message_user_set, source/version (library call), date not present in the original footer β so we keep it cute and undated, 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