TT_PTYPE_OPNUM_CALLBACK_ADD(3)

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

🌸 NAME 🌸

tt_ptype_opnum_callback_add β€” return a callback if two opnums are equal. This is a library call, bestie, and we are about to understand it fr fr πŸ’…βœ¨

✨ SYNOPSIS ✨

#include &<Tt/tt_c.h>
Tt_status tt_ptype_opnum_callback_add(
const char *ptid,
int opnum,
Tt_message_callback f);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so tt_ptype_opnum_callback_add returns a callback if the specified opnums are equal. The callback is defined in Tt/tt_c.h - Tttt_c(5). Iconic.

When a message is delivered because it matched a pattern derived from a signature in the named ptype with an opnum equal to the specified one, the given callback is run in the usual ToolTalk way. Periodt.

  • ptid β€” the identifier of the ptype involved in this operation.
  • opnum β€” the opnum of the specified ptype.
  • f β€” the message callback to be run.

πŸ‘‘ RETURN VALUE πŸ‘‘

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

  • TT_OK β€” The operation completed successfully. Slay.
  • TT_ERR_PTYPE β€” The specified process type is not the name of an installed process type.
  • TT_ERR_POINTER β€” The pointer passed does not point to an object of the correct type for this operation.
  • TT_ERR_NOMP β€” The ttsession(1) process is not running and the ToolTalk service cannot restart it.

πŸŽ€ APPLICATION USAGE πŸŽ€

The tt_ptype_opnum_callback_add function will only be called for messages delivered by virtue of matching handler signatures. The callback cannot be called for observer signatures because the observer ptype is not recorded in the incoming message. No cap.

🌈 SEE ALSO 🌈


xoxo bestie πŸ’– β€” the footer source/version line is tt_ptype_o...allback_add(library call), and the date on this page is not shown, no cap 😭✨

πŸ“¦ where this page comes from