TT_PATTERN_CATEGORY(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’– 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 β€” the ttsession(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:


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