TT_PATTERN_ADDRESS_ADD(3)

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

πŸ’– tt_pattern_address_add πŸ’–

okay so bestie, this page is from the library call manual, and it's giving β€œadd a value to the address field for a pattern” energy. No cap, that's literally the NAME vibe. πŸŽ€


✨ NAME ✨

tt_pattern_address_add β€” add a value to the address field for a pattern πŸ’…

🌸 SYNOPSIS 🌸

#include &<Tt/tt_c.h>
Tt_status tt_pattern_address_add(
Tt_pattern p,
Tt_address d);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so tt_pattern_address_add adds a value to the address field for the pattern you point it at. It's literally that. 🫢

The p argument is a unique handle for a message pattern. That handle comes back after a tt_pattern_create(3) call has been made β€” so yeah, that's where it's from, iykyk. ✨

The d argument specifies which pattern attributes form the address that messages will be matched against. The following values are defined:

  • TT_HANDLER β€” the message is addressed to a specific handler that can perform this operation with these arguments. πŸ’Œ
  • TT_OBJECT β€” the message is addressed to a specific object that can perform this operation with these arguments. 🧸
  • TT_OTYPE β€” the message is addressed to the type of object that can perform this operation with these arguments. πŸ¦‹
  • TT_PROCEDURE β€” the message is addressed to any process that can perform this operation with these arguments. πŸ‘‘

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, tt_pattern_address_add 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. big yikes. 😭
  • TT_ERR_POINTER β€” the pointer passed does not point to an object of the correct type for this operation. pointer vibe check failed, bestie. πŸ’€

πŸŽ€ SEE ALSO πŸŽ€


πŸ’– sign-off bestie πŸ’– β€” this page is tt_pattern_address_add from the library call manual, and that's the source/version footer tea. The date isn't shown on this page, so I'm not inventing one, no cap 😭🫢

πŸ“¦ where this page comes from