TT_SESSION_BPROP(3)
πΈ NAME πΈ
tt_session_bprop β grab the ith value of a named property on a session, bestie π
(this one lives in the library call section of the manual, fyi π«Ά)
β¨ SYNOPSIS β¨
#include <Tt/tt_c.h>
Tt_status tt_session_bprop(
const char *sessid,
const char *propname,
int i,
unsigned char **value,
int *length);
π¦ DESCRIPTION π¦
Okay so tt_session_bprop fetches the ith value of the property you named, from the session you specified. That's literally the whole vibe π
Heads up tho: if there are i values or fewer, then both the returned value and the returned length get set to zero. Not one, not the other β both. Zero. Periodt β¨
Now let's break down the args, because iykyk:
sessidβ the session you joined, hun. You can totally use thesessidvalue that came back whentt_default_sessionwas called πpropnameβ the name of the property you're pulling values out of πΈiβ which item in the property list you want. And listen β the list numbering starts at zero. Classic. πvalueβ the address of a character pointer that the ToolTalk service points at a string holding the contents of the property β¨lengthβ the address of an integer where the ToolTalk service sets the length of the value, in bytes π (the description below calls this onelen, just so you're not confused when you see it π)
π₯ RETURN VALUE π₯
When it's a slay and everything works, tt_session_bprop returns the status of the operation as one of these Tt_status values:
TT_OKβ the operation completed successfully, we love to see it πTT_ERR_NOMEMβ not enough memory available to actually do the function πTT_ERR_NOMPβ thettsession(1)process isn't running and the ToolTalk service can't restart it πTT_ERR_NUMβ the integer value you passed was invalid (out of range) π©TT_ERR_PROPNAMEβ that property name is syntactically invalid, bestie πTT_ERR_SESSIONβ the ToolTalk session you specified is out of date or just plain invalid π§οΈ
π« SEE ALSO π«
Tt/tt_c.hβ and alsoTttt_c(5), go read it π§
and that's the whole page, bestie β filed under library calls, no date stamp on this one, so consider this your cute little sign-off ππβ¨
π¦ 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