TTDT_FILE_EVENT(3)
π NAME π
ttdt_file_event β use ToolTalk to announce an event about a file β¨ (yep bestie, this is the ttdt_file_event(library call) manual π
)
β¨ SYNOPSIS β¨
#include &<Tt/tttk.h>
Tt_status ttdt_file_event(
Tt_message context,
Tttk_op event,
Tt_pattern *patterns,
int send);
π¦ DESCRIPTION π¦
Okay so ttdt_file_event is the function you use to create and send a ToolTalk notice announcing an event pertaining to a file. The file is indicated by the pathname argument that was passed to ttdt_file_join(3) when patterns was created. No cap.
The event argument identifies the event. Hereβs the vibe:
- If
eventisTTDT_MODIFIED,ttdt_file_eventregisters in thethe_scopeargument passed tottdt_file_join(3)to handleGet_Modified,Save, andRevertrequests.Get_Modifiedis handled transparently by associating the modified state of the file withpatterns.SaveandRevertrequests are passed to theTtdt_file_cbthat was given tottdt_file_join(3). IfsendisTrue,ttdt_file_eventsendsModifiedinthe_scope. - If
eventisTTDT_SAVEDorTTDT_REVERTED,ttdt_file_eventunregisters handlerpatternsforGet_Modified,Save, andRevertrequests. IfsendisTrue,ttdt_file_eventsendsSavedorReverted, respectively, inthe_scope. Slay.
The context argument describes the environment to use. If context is not zero, messages created by ttdt_file_event inherit from context all contexts whose slotname begins with the characters ENV_. Periodt.
πΈ RETURN VALUE πΈ
Upon successful completion, the ttdt_file_event function returns the status of the operation as one of the following Tt_status values:
TT_OKβ The operation completed successfully. πTT_ERR_NOMPβ Thettsession(1)process is not running and the ToolTalk service cannot restart it. πTT_ERR_OVERFLOWβ The ToolTalk service has more active messages than it can handle. (The maximum number of active messages is implementation specific, but is at least 2000.) πTT_ERR_POINTERβ Thepatternsargument wasNULL. π
π SEE ALSO π
xoxo bestie π β source/version: ttdt_file_event(library call); date: the footer didnβt have one, so Iβm not inventing it, periodt π
π¦ 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