XMADDPROTOCOLCALLBACK(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ 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 protocol Atom ⭐
  • 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 of VendorShell and its associated resources, see VendorShell(3). go read it, bestie, it's giving essential πŸ“š

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 πŸ‘‘πŸ’–