TT_PATTERN_USER_SET(3)

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

πŸ’– tt_pattern_user_set πŸ’–

okay so this is the library call page for tt_pattern_user_set, and she is lowkey iconic. bestie, we are storing info in the user data cells of a pattern object. no cap, that’s the whole vibe check.

πŸŽ€ NAME πŸŽ€

tt_pattern_user_set β€” store information in the user data cells of a pattern object. periodt. πŸ’…

✨ SYNOPSIS ✨

#include &<Tt/tt_c.h>
Tt_status tt_pattern_user_set(
Tt_pattern p,
int key,
void *v);

πŸ¦‹ DESCRIPTION πŸ¦‹

The tt_pattern_user_set function stores information in the user data cells associated with the specified pattern object. main character energy, honestly.

The p argument is a unique handle for a message pattern. This handle is returned after tt_pattern_create(3) is called. The key argument is the specified user data cell. The value for each data cell must be unique for this pattern β€” not me being dramatic, it’s literally the rule. The v argument is the data cell, a piece of arbitrary user data that can hold a void *.

bestie, that uniqueness rule is real: the value for each data cell must be unique for this pattern. no duplicate-cell shenanigans. 🫢

πŸ’… RETURN VALUE πŸ’…

Upon successful completion, tt_pattern_user_set 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 🌈


xoxo πŸ’‹ β€” this has been tt_pattern_user_set, a library call original. The footer didn’t come with a source/version/date stamp to hype up, so consider this the sparkly sign-off instead. 🫢

πŸ“¦ where this page comes from