TT_PREQUEST_CREATE(3)
okay so bestie, welcome to the tt_prequest_create(library call) page β yes, the library call one β and it's literally about creating a procedure request message π
β¨
πΈ NAME πΈ
tt_prequest_create β create a procedure request message. that's the whole name section, short and iconic π
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_message tt_prequest_create(
Tt_scope scope,
const char *op);
π DESCRIPTION π
the tt_prequest_create function creates a message. the message it creates contains this exact duo, no cap:
Tt_address = TT_PROCEDURE Tt_class = TT_REQUEST
you can use the returned handle to add arguments and other attributes, and to send the message. main character handle energy fr fr π«Ά
the scope argument determines which processes are eligible to receive the message. here are the defined values, bestie:
TT_SESSIONβ all processes joined to the indicated session are eligible.TT_FILEβ all processes joined to the indicated file are eligible.TT_BOTHβ all processes joined to either the indicated file or the indicated session are eligible.TT_FILE_IN_SESSIONβ all processes joined to both the indicated file and the indicated session are eligible.
the op argument is the operation to be performed by the receiving process. that's it, that's the op π
π₯ RETURN VALUE π₯
upon successful completion, tt_prequest_create returns the unique handle that identifies this message. use tt_ptr_error(3) to extract one of these 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.TT_ERR_PROCIDβ the specified process identifier is out of date or invalid.
π¦ APPLICATION USAGE π¦
the application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. yes, free it, bestie, that's the assignment π
okay important caveat: if the ToolTalk service is unable to create a message when requested,tt_prequest_createreturns an invalid handle. when the application attempts to use this handle with another ToolTalk function, the ToolTalk service will returnTT_ERR_POINTER. not the vibe β handle with care π
π SEE ALSO π
Tt/tt_c.h - Tttt_c(5), tt_ptr_error(3), tt_free(3).
signing off from the footer, which gives us the tt_prequest_create library call source/version label and no date β so we're keeping it timeless 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