TT_MESSAGE_USER(3)
πΈ NAME πΈ
okay bestie, this is tt_message_user from the library call manual β and its whole job is to retrieve the user information associated with a message object. iconic behavior, honestly. π
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
void *tt_message_user(
Tt_message m,
int key);
π DESCRIPTION π
so the tt_message_user function grabs the user information stored in data cells that are associated with the message object you point it at. π«Ά
the user data is part of the message object β meaning the storage buffer in the application β and it is not part of the actual message. because of that, the application can only retrieve user information that the application itself placed in the message. no cap, that's the whole vibe. β¨
the m argument is the opaque handle for the message involved in this operation. the key argument is the user data cell to be retrieved, and that user data cell must be unique for this message. π
π RETURN VALUE π
upon successful completion, the tt_message_user function returns the data cell β a piece of arbitrary user data that can hold a void *. the application can use tt_ptr_error(3) to extract one of these Tt_status values from the returned data: π
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. π
π¦ APPLICATION USAGE π¦
the application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. bestie, please free your stuff. π§
the user data cell is intended to hold an address. if the address selected is equal to one of the Tt_status enumerated values, then the result of the tt_ptr_error(3) function will not be reliable. that's a very real caveat, so keep it in mind. π
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_ptr_error(3),tt_free(3).
π sign-off time: this page comes from the library call manual β that's the source/version situation β and the date is not printed on the original footer, so I'm not inventing one, bestie. 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