TT_OTYPE_IS_DERIVED(3)

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

πŸ’… tt_otype_is_derived

okay so bestie, this one lives in the library call section of the manual (that's the manual name, keep it in your notes πŸ“) and honestly it's giving "small function, big family tree energy." Let's get into it ✨


✨ NAME ✨

tt_otype_is_derived β€” it tells you about the otype derivations 🧬🌸


✨ SYNOPSIS ✨

#include &<Tt/tt_c.h>
int tt_otype_is_derived(
const char *derivedotype,
const char *baseotype);

like, that's the whole vibe. two strings in, an int out, no drama πŸ’…


🌸 DESCRIPTION 🌸

So tt_otype_is_derived specifies whether the derived otype is derived directly or indirectly from the base otype. basically: is this one descended from that one, or not πŸ‘‘ no cap, indirect counts too β€” it's not just checking the immediate parent, it's checking the whole ancestry situation 🧬✨

The derivedotype argument is the specified derived otype. The baseotype argument is the specified base otype. one is the lil baby otype, one is the ancestor, and this function does the vibe check on their relationship πŸ¦‹


πŸŽ€ RETURN VALUE πŸŽ€

Upon successful completion, the tt_otype_is_derived function returns 1 if the derivedotype is derived directly or indirectly from baseotype; otherwise, it returns zero. slay πŸ’– (yes, "zero" β€” that's a no from the function, respectfully πŸ™ˆ)

Your app can use tt_int_error(3) to extract one of these Tt_status values from the returned integer:

  • TT_OK β€” The operation completed successfully. we love a clean win ✨
  • TT_ERR_NOMP β€” The ttsession(1) process is not running and the ToolTalk service cannot restart it. 😭 that's rough bestie
  • TT_ERR_OTYPE β€” The specified object type is not the name of an installed object type. πŸ’€ rip, that otype doesn't exist here

πŸ¦‹ SEE ALSO πŸ¦‹

like the whole otype friend group fr fr 🫢 go read them too, iykyk πŸ“š


🧚 quick reminder bestie: read the return value and the tt_int_error(3) status, don't just assume. periodt.

and that's the page! 🌈 it's from the tt_otype_is_derived(library call) manual, and the footer was literally just tt_otype_is_derived(library call) again β€” so consider this your cute sign-off, mwah πŸ’‹πŸŽ€β­

πŸ“¦ where this page comes from