TT_SPEC_TYPE_SET(3)

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

🌸 NAME 🌸

tt_spec_type_set β€” assign an object type value to an object spec.

Okay bestie, quick vibe check: this is a library call page β€” yes, the manual name is library call β€” and we're folding that header info right up here instead of copy-pasting the big duplicate top line. Slay. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include &<Tt/tt_c.h>
Tt_status tt_spec_type_set(
const char *objid,
const char *otid);

✨ DESCRIPTION ✨

The tt_spec_type_set function assigns an object type value to the object spec.

⚠️ The type must be set before the spec is written for the first time and cannot be set thereafter. No cap, set it early or it is literally not happening. 😭

The objid argument is the identifier of the object involved in this operation. The otid argument is the otype to be assigned to the spec.

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the tt_spec_type_set function returns the status of the operation as one of the following Tt_status values:

  • TT_OK β€” The operation completed successfully. πŸ‘‘
  • TT_ERR_DBAVAIL β€” The ToolTalk service could not access the ToolTalk database needed for this operation.
  • TT_ERR_DBEXIST β€” The ToolTalk service could not access the specified ToolTalk database in the expected place.
  • TT_ERR_NOMP β€” The ttsession(1) process is not running and the ToolTalk service cannot restart it.
  • TT_ERR_OBJID β€” The objid passed to the ToolTalk service does not reference an existing object spec.
  • TT_ERR_READONLY β€” The attribute the application is trying to change is not owned or writable by the current user.

πŸ¦‹ SEE ALSO πŸ¦‹

Go read: Tt/tt_c.h - Tttt_c(5), tt_spec_create(3), tt_spec_write(3).


Byeee πŸ’– β€” source/version + date from the footer are getting a cute little shoutout right here at the very end, not a copy-paste, just a kiss. Mwah. πŸ’‹βœ¨

πŸ“¦ where this page comes from