98 SunCGI Reference Manual 0 EINDINIT [81] Input device not initialized. Disable Events Cerror disable_events(devclass, devnum) Cdevoff devclass; /* device type*/ Cint devnum; /* device number*/ disable_events puts the input device in the NO_EVENTS state. If the device is in RESPOND - EVENT state, the specified device is returned to NO_ EVENTS state; the measure of the device is not changed by disable_ events. If the device is in QUEUE_ EVENT state, disable_ events stops the specified device from putting events on the event queue. However, existing entries on the event queue are not removed and existing associations remain.
devclass and devnum must refer to an existing and initialized device or an error is produced. CGI not in proper state: CGI shall be in state VSAC. Errors ENOTVSAC [4] Input device does not exist EINDNOEX [80] EINDINIT [81] Input device not initialized. EINEVNEN [94] Events not enabled. 5.6. Status Inquiries The current state of the input devices, triggers, and the event queue can be obtained by using the functions discussed in this section.
0 Inquire LID State List Cerror inquire_lid_state_list(devclass, devnum, valid, list) Cdevoff devclass; /* device type*/ Cint devnum; /* device number*/ Clogical *valid; /* device supported at all*/ Cstatelist *list; /* table of descriptors*/ inquire_lid_state_list reports the status of a specific input device specified by devclass and devnum. The argument valid reports whether the dev- ice is supported at all. The list argument reports the track, associations, state and measure of the device in the appropriate elements of list. When checking the · elements of list , first check the state element - if state is RELEASED, the other elements of list are undefined.
typedef struct { Clidstate state; Cpromstate prompt; Cackstate acknowledgement; Cinrep *current; Cint n; Cint *triggers; cechotype echotyp; Cechostate echosta; Cint echodat; Cstatelist; 0 Errors Version C of 17 March 1986