TT_PATTERN_SENDER_ADD(3)

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

πŸ’– tt_pattern_sender_add πŸ’–

okay so this page is a library call, bestie, and it's literally about adding a value to the sender field for a pattern. group-chat summary: you have a message pattern, you want its sender field to include a procid, and this function is the girl for the job. ✨


🌸 NAME 🌸

tt_pattern_sender_add β€” add a value to the sender field for a pattern.

✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

The tt_pattern_sender_add function adds a value to the sender field for the specified pattern. no cap, that's her whole thing. πŸ’…

The p argument is a unique handle for a message pattern. This handle is returned after tt_pattern_create(3) is called. so like, make the pattern first, then bring her the handle. 🫢

The procid argument is the character value that uniquely identifies the process of interest. that's the sender value you're adding, bestie. 🌟

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the tt_pattern_sender_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. not the vibe. 😭
  • TT_ERR_POINTER β€” The pointer passed does not point to an object of the correct type for this operation. wrong-type energy, and she is not here for it. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’– source/version: library call Β· date: not listed in the footer, bestie β€” that's the whole sign-off, mwah! πŸ’…

πŸ“¦ where this page comes from