TT_MESSAGE_CREATE(3)
π tt_message_create β library call π
okay so this is the page for tt_message_create, from the library call manual, and it's literally about creating a new message object. bestie, it's a whole vibe: you call it, ToolTalk hands you an opaque handle, and you go live your main-character life. β¨
β¨ NAME β¨
tt_message_create β create a new message object π«Ά
πΈ SYNOPSIS πΈ
#include &<Tt/tt_c.h>
Tt_message tt_message_create(void)
yes, that include line has an & in it, and I am not touching it. we respect the manpage in this house. π
π¦ DESCRIPTION π¦
The tt_message_create function creates a new message object. that's the whole assignment, and it ate. π
The ToolTalk service returns a message handle that is an opaque pointer to a ToolTalk structure. so likeβ¦ it's a handle bestie, not a scavenger hunt. do not go poking at it like it's a normal pointer. π
π RETURN VALUE π
Upon successful completion, the tt_message_create function returns the unique opaque handle that identifies the message object. iconic. π
The application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned handle:
TT_OKβ the operation completed successfully. slay. βTT_ERR_NOMPβ thettsession(1)process is not running and the ToolTalk service cannot restart it. not the session ghosting us πTT_ERR_PROCIDβ the process identification is not valid. identity crisis, but make it ToolTalk. π
π APPLICATION USAGE π
A return value of TT_ERR_PROCID implies that tt_open(3) was not issued before tt_message_create. so if you see that one, check yourself before you wreck yourself: did you open first? π
If the ToolTalk service is unable to create a message when requested, tt_message_create returns an invalid handle. When the application attempts to use this handle with another ToolTalk function, the ToolTalk service will return TT_ERR_POINTER. so do not keep passing around a cursed handle and acting surprised. it's giving "why is everything on fire" and the answer is the invalid handle. π₯
bestie warning: an invalid handle is not a cute little mystery box. using it elsewhere gets you TT_ERR_POINTER, periodt. π«Ά
π SEE ALSO π
Tt/tt_c.h - Tttt_c(5)tt_open(3)tt_message_send(3)tt_message_destroy(3)
go read those too, iykyk. πβ¨
and that's the page, bestie. the footer/source-version line is literally tt_message_create(library call) β no date listed in the original footer, so don't come for me π. mwah. ππ
π¦ 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