Flushes the output buffer, waits for a reply packet, and copies the contents into the specified Reply parameter.
Enhanced X-Windows Library (libX11.a)
Status _XReply(DisplayPtr, Reply, Extra, Discard) Display *DisplayPtr; xReply *Reply; int Extra; Bool Discard;
The _XReply extension function flushes the output buffer, waits for a reply packet, and copies the contents into the specified Reply parameter. If other events arrive during this time, the _XReply extension function queues these events for later use.
Most reply structures are 32 bytes long; therefore, the Extra parameter is usually the value of 0. In the Core protocol, only the following are longer than 32 bytes: the GetWindowAttributes, QueryFont, QueryKeymap, and GetKeyboardControl reply structures.
If a reply is not followed by variable-length data, use the _XReply extension function as follows:
_XReply (DisplayPtr, (xReply *)&Rep, 0, xTrue); *ret1 = rep.ret1; *ret2 = rep.ret2; *ret3 = rep.ret3; UnlockDisplay(dpy); SyncHandle(); return (rep.ret4);}
If a reply has variable-length data, change the Discard parameter from xTrue value to xFalse value and use the _XRead extension function to read the variable-length data.
True | Indicates a reply was received successfully. |
False | Indicates the reply was not successful. An XError message accompanies this value. |
Using Extensions in AIXwindows in AIX Version 4.3 AIXwindows Programming Guide.
The GetKeyboardControl protocol request, GetWindowAttributes protocol request, QueryFont protocol request, and the QueryKeymap protocol request.
AIXwindows Overview for Programmers in AIX Version 4.3 AIXwindows Programming Guide.