XMADDPROTOCOLCALLBACK(3)
β¨ XmAddProtocolCallback β¨
okay bestie, we're in the library call section of the manual and this one is a VendorShell function, so buckle up π
π NAME π
XmAddProtocolCallback β a VendorShell function that adds client callbacks for a protocol. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
#include <Xm/Protocols.h>
void XmAddProtocolCallback(
Widget shell,
Atom property,
Atom protocol,
XtCallbackProc callback,
XtPointer closure);
π¦ DESCRIPTION π¦
so like, XmAddProtocolCallback adds client callbacks for a protocol. she first does a vibe check on whether the protocol is registered β and if it is not, she calls XmAddProtocols for you (she's got you, don't worry π«Ά). then she adds the callback to the internal list. these callbacks get called when the corresponding client message is received. iconic behavior, no cap β¨
XmAddWMProtocolCallback is a convenience interface, i.e. the low-effort bestie version. it calls XmAddProtocolCallback with the property value set to the atom returned by interning WM_PROTOCOLS. periodt.
now the arguments, one by one, because we respect her π
shellβ specifies the widget with which the protocol property is associated πpropertyβ specifies the protocol property πprotocolβ specifies the protocolAtomβcallbackβ specifies the procedure to call when a protocol message is received π₯closureβ specifies the client data to be passed to the callback when it is invoked π
for a complete definition ofVendorShelland its associated resources, seeVendorShell(3). go read it, bestie, it's giving essential π
π RELATED π
the girlies in her orbit, all of them:
and that's the whole page, no notes πβ¨ this was XmAddProtocolCallback(library call), living in the library call section of the manual, dated back in the day β mwah, sending you all the protocol callback energy, slay, bye ππ
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms