Annotation of researchv9/X11/src/X.V11R1/lib/X/XGetKCnt.c, revision 1.1.1.1

1.1       root        1: #include "copyright.h"
                      2: 
                      3: /* $Header: XGetKCnt.c,v 11.8 87/08/31 17:20:08 toddb Exp $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1986  */
                      5: 
                      6: #define NEED_REPLIES
                      7: #include "Xlibint.h"
                      8: 
                      9: struct kmap {char keys[32];};
                     10: 
                     11: void
                     12: XGetKeyboardControl (dpy, state)
                     13:     register Display *dpy;
                     14:     register XKeyboardState *state;
                     15:     {
                     16:     xGetKeyboardControlReply rep;
                     17:     register xReq *req;
                     18:     LockDisplay(dpy);
                     19:     GetEmptyReq (GetKeyboardControl, req);
                     20:     (void) _XReply (dpy, (xReply *) &rep, 
                     21:        (sizeof(rep) - sizeof (xReply)) >> 2, xTrue);
                     22: 
                     23:     state->key_click_percent = rep.keyClickPercent;
                     24:     state->bell_percent = rep.bellPercent;
                     25:     state->bell_pitch = rep.bellPitch;
                     26:     state->bell_duration = rep.bellDuration;
                     27:     state->led_mask = rep.ledMask;
                     28:     state->global_auto_repeat = rep.globalAutoRepeat;
                     29:     * (struct kmap *) state->auto_repeats = * (struct kmap *) rep.map;
                     30:     UnlockDisplay(dpy);
                     31:     SyncHandle();
                     32:     }
                     33: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.