|
|
1.1 root 1: #include "copyright.h"
2:
3: /* $Header: XQuExt.c,v 11.12 87/09/11 08:05:57 toddb Exp $ */
4: /* Copyright Massachusetts Institute of Technology 1986 */
5:
6: #define NEED_REPLIES
7: #include "Xlibint.h"
8:
9: Bool XQueryExtension(dpy, name, major_opcode, first_event, first_error)
10: register Display *dpy;
11: char *name;
12: int *major_opcode; /* RETURN */
13: int *first_event; /* RETURN */
14: int *first_error; /* RETURN */
15: {
16: xQueryExtensionReply rep;
17: register xQueryExtensionReq *req;
18:
19: LockDisplay(dpy);
20: GetReq(QueryExtension, req);
21: req->nbytes = strlen(name);
22: req->length += (req->nbytes+3)>>2;
23: _XSend(dpy, name, (long)req->nbytes);
24: (void) _XReply (dpy, (xReply *)&rep, 0, xTrue);
25: *major_opcode = rep.major_opcode;
26: *first_event = rep.first_event;
27: *first_error = rep.first_error;
28: UnlockDisplay(dpy);
29: SyncHandle();
30: return (rep.present);
31: }
32:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.