TT_SESSION_BPROP_ADD(3)
π tt_session_bprop_add β bestie, let's append some bytes β¨
okay so this one lives in the library call section of the manual, and it's your go-to when you need to tack a brand-new byte-string value onto the end of a property's value list π
πΈ NAME πΈ
tt_session_bprop_add β literally adds a new byte-string value to the end of the list of values π
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_status tt_session_bprop_add(
const char *sessid,
const char *propname,
const unsigned char *value,
int length);
π¦ DESCRIPTION π¦
okay so tt_session_bprop_add adds a new byte-string value to the end of the list of values for the named property on the session you specify. that's the whole vibe. it appends, it doesn't replace, no cap π«Ά
sessidβ the name of the session joined. your app can just use thesessidvalue that came back whentt_default_sessionwas called. main character energy, honestly.propnameβ the name of the property you're adding values to.valueβ the value to add to the session property.lengthβ the size of thevaluein bytes. yes bestie, in bytes, not vibes.
π₯ RETURN VALUE π₯
upon successful completion, tt_session_bprop_add returns the status of the operation as one of these very iconic Tt_status values:
TT_OKβ the operation completed successfully. slay π the good ending.TT_ERR_NOMPβ thettsession(1)process is not running and the ToolTalk service cannot restart it. it's giving "nobody's home" πTT_ERR_PROPLENβ the specified property value is too long. heads up: the maximum size is implementation specific, but it is at least 2048. don't push it, fr fr.TT_ERR_PROPNAMEβ the specified property name is syntactically invalid. sorry babe, that name did not pass the vibe check π
π SEE ALSO π
Tt/tt_c.h - Tttt_c(5).
and that's the page!! πβ¨ this little library call came from the tt_session_bprop_add(library call) source, and the version/date on the original footer said tt_session_bprop_add(library call) too β so yeah, that's the whole sign-off bestie, mwah ππ¦π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms