|
|
1.1 ! root 1: #include "copyright.h" ! 2: ! 3: /* $Header: XGetSSaver.c,v 11.9 87/09/11 08:09:29 toddb Exp $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1986 */ ! 5: ! 6: #define NEED_REPLIES ! 7: #include "Xlibint.h" ! 8: ! 9: XGetScreenSaver(dpy, timeout, interval, prefer_blanking, allow_exp) ! 10: register Display *dpy; ! 11: /* the following are return only vars */ ! 12: int *timeout, *interval; ! 13: int *prefer_blanking, *allow_exp; /*boolean */ ! 14: ! 15: { ! 16: xGetScreenSaverReply rep; ! 17: register xReq *req; ! 18: LockDisplay(dpy); ! 19: GetEmptyReq(GetScreenSaver, req); ! 20: ! 21: (void) _XReply (dpy, (xReply *)&rep, 0, xTrue); ! 22: *timeout = rep.timeout; ! 23: *interval = rep.interval; ! 24: *prefer_blanking = rep.preferBlanking; ! 25: *allow_exp = rep.allowExposures; ! 26: UnlockDisplay(dpy); ! 27: SyncHandle(); ! 28: } ! 29:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.