TT_PNOTICE_CREATE(3)
π tt_pnotice_create β (library call) realness π
πΈ NAME πΈ
Bestie, this is tt_pnotice_create, and its whole job is to create a procedure notice. No cap.
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_message tt_pnotice_create(
Tt_scope scope,
const char *op);
π¦ DESCRIPTION π¦
Okay so tt_pnotice_create creates a message. The created message contains these two iconic little assignments:
Tt_address = TT_PROCEDURE
Tt_class = TT_NOTICE
The application can use the returned handle to add arguments and other attributes, and to send the message. Slay.
The scope argument determines which processes are eligible to receive the message. The following values are defined:
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 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 the whole vibe of it.
π₯ RETURN VALUE π₯
Upon successful completion, tt_pnotice_create returns the unique handle that identifies this message. 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.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.
If the ToolTalk service is unable to create a message when requested, tt_pnotice_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 yeah, don't try to use the invalid one, bestie. π
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_ptr_error(3),tt_free(3).
Okay that's the whole page, bestie β signing off as tt_pnotice_create in the (library call) manual, and heads up: this footer has no source/version and no date listed, just the page name and that manual tag. π
π
π¦ 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