TT_SPEC_MOVE(3)
okay so bestie, you opened the tt_spec_move page from the library call manual, and itβs literally the βtell ToolTalk this object movedβ icon β¨. No cap, every detail matters here, so letβs go π«Ά.
πΌ NAME πΌ
tt_spec_move β notify the ToolTalk service that an object has moved to a different file. Thatβs the whole vibe: object relocated, service needs the tea β.
π SYNOPSIS π
#include &<Tt/tt_c.h>
char *tt_spec_move(
const char *objid,
const char *newfilepath);
Two args, bestie: objid and newfilepath, both const char *, and the return is char * π
.
π DESCRIPTION π
The tt_spec_move function notifies the ToolTalk service that this object has moved to a different file. Like, βhey bestie, same object, new addressβ π.
The ToolTalk service returns a new objid for the object and leaves a forwarding pointer from the old objid to the new one. So the old ID still points to the new ID β main character forwarding energy π.
If a new objid is not required (for example, because the new and old files are in the same file system), tt_spec_move returns TT_WRN_SAME_OBJID. Thatβs not a fail, itβs just βno new ID needed, periodtβ π
.
The objid argument is the identifier of the object involved in this operation. Literally the objectβs ID card πͺͺ.
The newfilepath argument is the new file name. Thatβs the new address, bestie π‘.
β RETURN VALUE β
Upon successful completion, the tt_spec_move function returns the new unique identifier of the object involved in this operation. The application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned pointer:
TT_OKβ The operation completed successfully. Slay βTT_ERR_DBAVAILβ The ToolTalk service could not access the ToolTalk database needed for this operation. Database said βnot todayβ πTT_ERR_DBEXISTβ The ToolTalk service could not access the specified ToolTalk database in the expected place. It looked where it should be and went πβTT_ERR_NOMPβ Thettsession(1)process is not running and the ToolTalk service cannot restart it. No session, no service, big yikes πTT_ERR_OBJIDβ Theobjidpassed to the ToolTalk service does not reference an existing object spec. That ID is giving expired student card πTT_ERR_PATHβ The specified pathname included an unsearchable directory. Path said βyou canβt search hereβ π«TT_WRN_SAME_OBJIDβ A newobjidis not required. No new ID needed, periodt π
π¦ APPLICATION USAGE π¦
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. Free it, bestie β donβt leak, thatβs not cute π§.
For efficiency and reliability, the application should replace any references in the application to the old objid with references to the new one. Out with the old ID, in with the new ID, fr fr π.
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_ptr_error(3),tt_free(3).
kisses and object-moved blessings π β source/version: tt_spec_move in the library call manual; date: not listed on this page, so no invented date tea from me, ngl π
π¦ 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