TT_PATTERN_SESSION_ADD(3)

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

✨ NAME ✨

okay so bestie, this is the tt_pattern_session_add page from the library call manual, and it's giving β€œadd a value to the session field for a pattern” energy πŸ’…βœ¨

tt_pattern_session_add β€” adds a value to the session field for a pattern. no cap.


🌸 SYNOPSIS 🌸

#include &<Tt/tt_c.h>
Tt_status tt_pattern_session_add(
Tt_pattern p,
const char *sessid);

πŸ¦‹ DESCRIPTION πŸ¦‹

The tt_pattern_session_add function adds a value to the session field for the specified pattern. literally its whole job πŸ’–

When the process joins a session, the ToolTalk service updates the session field of its registered patterns. periodt.

The p argument is a unique handle for a message pattern. This handle is returned after tt_pattern_create(3) is called β€” so it's the pattern's main-character handle, not some random pointer 😌. The sessid argument is the session of interest. got it? iykyk πŸ¦‹

bestie reminder: p comes from tt_pattern_create(3), and sessid is the session you're obsessed with. 🫢

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the tt_pattern_session_add function returns the status of the operation as one of the following Tt_status values:

  • 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. πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

go read these, bestie:


πŸ’– source/version line: library call Β· date: not listed on this page β€” so no date to obsess over, bestie. bye! πŸ’…πŸŽ€

πŸ“¦ where this page comes from