TTMEDIA_LOAD_REPLY(3)
okay so bestie, welcome to ttmedia_load_reply from the library call manual β yes, the media-reply icon herself is here and she's ready to explain the whole thing π
β¨
π NAME π
ttmedia_load_reply β reply to a Display, Edit or Compose request π«Ά
β¨ SYNOPSIS β¨
#include &<Tt/tttk.h>
Tt_message ttmedia_load_reply(
Tt_message contract,
const unsigned char *new_contents,
int new_len,
int reply_and_destroy);
π¦ DESCRIPTION π¦
okay so the ttmedia_load_reply function is literally the one you use to reply to a Media Exchange request to display, edit or compose a document. the editor working on the request is usually the one calling ttmedia_load_reply, right when the user has indicated in some way that he or she is finished viewing or modifying the document.
if new_contents and new_len are non-NULL and non-zero, respectively, ttmedia_load_reply uses their values to set the new contents of the document back in the appropriate output argument of contract. and if reply_and_destroy is True, ttmedia_load_reply replies to contract and then destroys it. periodt π
π₯ RETURN VALUE π₯
upon successful completion, the ttmedia_load_reply function returns the created Tt_message; otherwise, it returns an error pointer. the application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned handle:
TT_ERR_NOMPβ thettsession(1)process is not running and the ToolTalk service cannot restart it πTT_ERR_NOTHANDLERβ this application is not the handler for this messageTT_ERR_NUMβ the integer value passed was invalid (out of range)TT_ERR_PROCIDβ the specified process identifier is out of date or invalid
πΈ APPLICATION USAGE πΈ
if contract is a Display request, then new_contents and new_len should be zero. yes bestie, literally zero β that's the rule on the page π
π SEE ALSO π
Tt/tttk.h - Tttttk(5), ttmedia_load(3), ttmedia_ptype_declare(3), ttmedia_Deposit(3).
and that's the whole vibe: the footer only gives us ttmedia_load_reply and the library call manual section, with no date attached, so signing off from there β bye bestie, go reply to those Media Exchange requests with main character energy ππ
π¦ 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