1XmAddProtocolCallback(library call) XmAddProtocolCallback(library call)
2
3
4
6 XmAddProtocolCallback — A VendorShell function that adds client call‐
7 backs for a protocol
8
10 #include <Xm/Protocols.h>
11 void XmAddProtocolCallback(
12 Widget shell,
13 Atom property,
14 Atom protocol,
15 XtCallbackProc callback,
16 XtPointer closure);
17
19 XmAddProtocolCallback adds client callbacks for a protocol. It checks
20 if the protocol is registered, and if it is not, calls XmAddProtocols.
21 It then adds the callback to the internal list. These callbacks are
22 called when the corresponding client message is received.
23
24 XmAddWMProtocolCallback is a convenience interface. It calls XmAddPro‐
25 tocolCallback with the property value set to the atom returned by
26 interning WM_PROTOCOLS.
27
28 shell Specifies the widget with which the protocol property is
29 associated
30
31 property Specifies the protocol property
32
33 protocol Specifies the protocol Atom
34
35 callback Specifies the procedure to call when a protocol message is
36 received
37
38 closure Specifies the client data to be passed to the callback when
39 it is invoked
40
41 For a complete definition of VendorShell and its associated resources,
42 see VendorShell(3).
43
45 VendorShell(3), XmAddWMProtocolCallback(3), XmInternAtom(3), and XmRe‐
46 moveProtocolCallback(3).
47
48
49
50 XmAddProtocolCallback(library call)