TT_PATTERN_CATEGORY(3)
π NAME π
okay bestie, welcome to the tt_pattern_category(library call) page β¨ β this one is about returning the category value of a pattern, fr fr.
π SYNOPSIS π
#include &<Tt/tt_c.h>
Tt_category tt_pattern_category(
Tt_pattern p);
πΈ DESCRIPTION πΈ
So the tt_pattern_category function returns the category value of the specified pattern. That's the whole main-character job π
The p argument is the opaque handle for a message pattern β think of it as the pattern's lil' VIP pass, iykyk π«Ά
β¨ RETURN VALUE β¨
When it's done successfully, tt_pattern_category returns a value that tells you whether the receiving process will observe or handle messages π
It returns one of these Tt_status values:
TT_OBSERVEβ the receiving process will observe messages.TT_HANDLEβ the receiving process will handle messages.
Your app can use tt_int_error(3) to extract one of these Tt_status values from the Tt_category integer return value:
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_POINTERβ the pointer passed does not point to an object of the correct type for this operation. not the vibe check we wanted π
π¦ SEE ALSO π¦
go peek at the rest of the crew:
Tt/tt_c.h-Tttt_c(5)tt_pattern_category_set(3)tt_int_error(3)
xoxo from tt_pattern_category(library call) π β that's the source/version footer energy, and there's no extra date line here, so bye bestie! π
π¦ 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