TT_MESSAGE_PATTERN(3)
π tt_message_pattern β bestie edition
okay so this is the tt_message_pattern page, straight out of the ToolTalk <purple>library call</purple> section β yes the same one, I just folded the label in up here so it doesn't get lonely π
β¨ NAME β¨
tt_message_pattern β returns the pattern that a message matched π«
πΈ SYNOPSIS πΈ
#include <Tt/tt_c.h>
Tt_pattern tt_message_pattern(
Tt_message m);
π¦ DESCRIPTION π¦
So tt_message_pattern gives you back the pattern that the specified message matched. that's it, that's the whole vibe. it's giving "which filter did I fall through" energy π
The m argument is the opaque handle for the message involved in this operation. opaque meaning don't peek inside it, just hand it over and let the library do its thing π
π₯ RETURN VALUE π₯
If everything slays, tt_message_pattern returns the opaque handle for a message pattern β¨ You can run tt_ptr_error(3) on it to check whether that handle is actually valid β highly recommend, no cap.
Otherwise it returns one of these Tt_status values:
TT_OKβ the operation completed successfully. we love a happy ending πTT_ERR_NOMPβ thettsession(1)process is not running, and the ToolTalk service cannot restart it π this is the "nobody's home and we can't get back in" situation.TT_ERR_POINTERβ the pointer you passed does not point to an object of the correct type for this operation π check your types, bestie.
π§ APPLICATION USAGE π§
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API π«Ά like, you don't just leave it lying around, that's rude to your memory.
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5)tt_ptr_error(3)tt_free(3)
periodt π
okay that's the whole page, go be iconic with your patterns β¨
signing off from the tt_message_pattern(library call) corner of the ToolTalk library docs β same source, same version, same date as ever, 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