XtAppAddBlockHook(3)
β¨ XtAppAddBlockHook β the block hook registration situation β¨
okay so bestie, this is a page from the XT FUNCTIONS corner of the X Toolkit Intrinsics (that's libXt, the C Language Interface one, you know the vibe π
). We're talking about block hooks β lil' procedures that get pinged right when the Intrinsics are about to go take a nap waiting for input. Two functions live here: XtAppAddBlockHook and XtRemoveBlockHook. Let's get into it π«Ά
πΈ NAME πΈ
XtAppAddBlockHook, XtRemoveBlockHook β register a block hook procedure β¨
π SYNTAX π
#include <X11/Intrinsic.h>
XtBlockHookId XtAppAddBlockHook(XtAppContext app_context,
XtBlockHookProc proc, XtPointer client_data);
void XtRemoveBlockHook(XtBlockHookId id);
π ARGUMENTS π
app_contextβ the application context. Specifies it. That's the whole job, and she does it flawlessly πprocβ the block hook procedure. This is the function that's gonna get called, bestie.num_argsβ the application-specific data to be passed to the block hook.
not me noticing num_args is listed down here but does not appear in the synopsis above π that's just how the page is, i'm reporting the facts, no cap.
π¦ DESCRIPTION π¦
XtAppAddBlockHook registers the specified procedure and hands you back an identifier for it. And then? The hook gets called at any time in the future whenever the Intrinsics are about to block pending some input. like, she's on standby, waiting for that moment, main character energy fr fr π«
Block hook procedures are removed automatically, and the XtBlockHookId is destroyed, when the application context they were added in is destroyed. so you don't have to clean up after yourself β the app context does it for you, iconic behavior honestly π
XtRemoveBlockHook removes the specified block hook procedure from the list in which it was registered. manual removal, for when you just can't wait for the context to be destroyed π
π SEE ALSO π
- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
and that's the whole page, bestie, we ate and left no crumbs π this was brought to you by X Version 11 and libXt 1.3.1 β go forth and hook your blocks, mwah ππ§
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright (c) 1993, 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms