TT_PATTERN_OTYPE_ADD(3)

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

🌸 NAME 🌸

tt_pattern_otype_add β€” add a value to the object type field for a pattern. Okay bestie, welcome to the tt_pattern_otype_add page from the library call manual β€” this function is literally here to add a value to the object type field for a pattern πŸ’…βœ¨

✨ SYNOPSIS ✨

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

πŸ’– DESCRIPTION πŸ’–

The tt_pattern_otype_add function adds a value to the object type field for the specified pattern. No cap.

So the p argument is a unique handle for a message pattern β€” that handle is returned after tt_pattern_create(3) is called. The otype argument is the name of the object type the application manages. That’s the whole vibe 🫢

πŸŽ€ RETURN VALUE πŸŽ€

Upon successful completion, the tt_pattern_otype_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_OTYPE β€” the specified object type is not the name of an installed object type. vibe check failed, bestie πŸ’€
  • TT_ERR_POINTER β€” the pointer passed does not point to an object of the correct type for this operation. rough πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’Œ cute sign-off: this page is tt_pattern_otype_add from the library call manual β€” that’s the source/version tea β€” and the footer shows no date, so I’m not gonna invent one. mwah πŸ’‹βœ¨
πŸ“¦ where this page comes from