TT_PATTERN_CLASS_ADD(3)

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

🌸 NAME 🌸

okay so bestie, this is the tt_pattern_class_add(library call) page β€” a whole library call moment β€” and its main-character job is literally adding a value to the class information for a pattern. no cap, that’s the whole vibe πŸ’…


πŸ“Ž SYNOPSIS πŸ“Ž

#include &<Tt/tt_c.h>
Tt_status tt_pattern_class_add(
Tt_pattern p,
Tt_class c);

πŸ’– DESCRIPTION πŸ’–

The tt_pattern_class_add function adds a value to the class information for the specified pattern. iconic behavior, honestly 🫢

If the class is TT_REQUEST, the sending process expects a reply to the message.

If the class is TT_NOTICE, the sending process does not expect a reply to the message.

The p argument is a unique handle for a message pattern. This handle is returned after tt_pattern_create(3) is called. The c argument indicates whether the receiving process is to take action after the message is received. The following values are defined:

  • TT_NOTICE β€” a notice of an event. The sender does not want feedback on this message.
  • TT_REQUEST β€” a request for some action to be taken. The sender must be notified of progress, success or failure, and must receive any return values.

🫢 RETURN VALUE 🫢

Upon successful completion, the tt_pattern_class_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 peek at Tt/tt_c.h - Tttt_c(5), tt_pattern_create(3).


that’s the whole page, bestie β€” footer is just the classic library call tag for tt_pattern_class_add, no extra version/date crumbs in sight, and we are absolutely leaving it cute and complete πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from