TT_PATTERN_REGISTER(3)
πΈ NAME πΈ
tt_pattern_register β register a pattern with the ToolTalk service. And yes bestie, this is the library call manual page, so you're in the right place π
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_status tt_pattern_register(
Tt_pattern p);
π DESCRIPTION π
Okay so tt_pattern_register registers a pattern with the ToolTalk service. That's the main-character move.
When the process is registered, it will start receiving messages that match the specified pattern. Slay β¨
β οΈ Once a pattern is registered, no further changes can be made in the pattern. So lock it in before you commit, bestie β no take-backs.
When the process joins a session or file, the ToolTalk service updates the file and session field of its registered patterns. Iconic behavior, honestly π¦
The p argument is a unique handle for a message pattern. That handle is returned after tt_pattern_create(3) is called. So yes, you need that first, iykyk.
π RETURN VALUE π
Upon successful completion, tt_pattern_register returns the status of the operation as one of the following Tt_status values:
TT_OKβ the operation completed successfully. periodt π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. rude, but okay πTT_ERR_PROCIDβ the specified process identifier is out of date or invalid. π
π¦ SEE ALSO π¦
Tt/tt_c.h-Tttt_c(5),tt_pattern_unregister(3),tt_pattern_create(3).
source/version tea: it's the library call manual, page tt_pattern_register; date: not shown in the footer, bestie β bye, 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