TT_SESSION_PROP_SET(3)

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

🌸 NAME 🌸

okay so this is tt_session_prop_set, and the manual name is library call β€” she replaces current values for a property of a session with a character-string value. periodt πŸ’…


✨ SYNOPSIS ✨

#include &<Tt/tt_c.h>
Tt_status tt_session_prop_set(
const char *sessid,
const char *propname,
const char *value);

πŸ’… DESCRIPTION πŸ’…

bestie, the way that tt_session_prop_set works is genuinely so clean: it replaces all current values stored under the named property of the specified session with the given character-string value. like, the whole property list under that name gets the new value. no cap. ✨

  • sessid β€” the name of the session joined. the application can use the sessid value returned when tt_default_session is called. 🫢
  • propname β€” the name of the property to be examined. iykyk.
  • value β€” the new value to be inserted. and yeah, NULL removes a value from the property list. iconic behavior honestly πŸ’–

🫢 RETURN VALUE 🫢

when it finishes successfully, tt_session_prop_set returns the status of the operation as one of these Tt_status values β€” vibe check, but make it C:

  • TT_OK β€” the operation completed successfully. slay πŸŽ€
  • TT_ERR_NOMP β€” the ttsession(1) process is not running and the ToolTalk service cannot restart it. that's the β€œno main process” moment, bestie 😭
  • TT_ERR_PROPLEN β€” the specified property value is too long. (the maximum size is implementation specific, but is at least 64.) not me showing up with an oversized value πŸ™ˆ
  • TT_ERR_PROPNAME β€” the specified property name is syntactically invalid. she said β€œwrong name, wrong energy” πŸ’€
  • TT_ERR_SESSION β€” the specified ToolTalk session is out of date or invalid. expired session, expired vibe, we move on 🌈

πŸ¦‹ SEE ALSO πŸ¦‹


okay bye bestie πŸ’œ this page signs off as a library call manual page β€” the footer doesn't stamp an extra version or date on it, so we're just gonna leave it at that and exit stage left 🧚 ✨

πŸ“¦ where this page comes from