TT_MESSAGE_CONTEXT_IVAL(3)
π NAME π
okay so this page is tt_message_context_ival from the library call manual, and itβs literally the function for retrieving the integer value of a messageβs context, bestie π
π¦ SYNOPSIS π¦
#include &<Tt/tt_c.h>
Tt_status tt_message_context_ival(
Tt_message m,
const char *slotname,
int *value);
β¨ DESCRIPTION β¨
The tt_message_context_ival function retrieves the integer value of a messageβs context. no cap, thatβs the whole mission π«Ά
The m argument is the opaque handle for the message involved in this operation. main character message energy, honestly π
The slotname argument describes the context of this message. The value argument points to the location to return the value. very βput the value right thereβ of it π
if thereβs no context slot associated withslotname,tt_message_context_ivalreturns aNULLpointer in*valueβ thatβs the documented move, so donβt be surprised, bestie π
π₯ RETURN VALUE π₯
Upon successful completion, the tt_message_context_ival function returns the status of the operation as one of the following Tt_status values:
TT_OKβ the operation completed successfully. βTT_ERR_NOMPβ thettsession(1)process is not running and the ToolTalk service cannot restart it. πTT_ERR_NUMβ the integer value passed was invalid (out of range). π«TT_ERR_POINTERβ the pointer passed does not point to an object of the correct type for this operation. πTT_ERR_SLOTNAMEβ the specifiedslotnameis syntactically invalid. π¬TT_WRN_NOTFOUNDβ the named context does not exist on the specified message. π
πΈ APPLICATION USAGE πΈ
The application can use tt_free(3) to free any data stored in the address returned by the ToolTalk API. clean up after yourself, icon behavior π§
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_free(3).
footer/source-version vibes: tt_message_context_ival(library call) β and date? not printed on this page, so Iβm not making one up, bestie ππ
π¦ 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