Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

Chapter 2 - Initializing and Terminating SunCGI 27 0 Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, VSOP, or VSAC. Inquire Output Capabilities Cerror inquire_output_capabilities(first, num, list) Cint first; /* first element*/ Cint num; /* number of elements in list to be returned*/ Cchar *list[]; /* returned list*/ inquire output capabilities lists the output functions in the returned argument Ust. The range of the first and num arguments is determined by the returned argument output from the inquire_ device_ class function. Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, VSOP, or VSAC.

EINQLTL [16] Inquiry arguments are longer than list. 2.5. Input Capability Inquiries Input devices have a separate class of negotiation functions. Input capability inquiries report qualitative abilities as well as quantitative abilities of input dev- ices. The inquire_ input_ capabilities function repons which devices and overall features are supponed by SunCGI. The remaining functions report the capabilities of individual devices or features. Input devices are virtual dev- ices which must be associated with physical triggers (such as mouse buttons).

Initializing an input device defines the measure used by a device, for example initializing a LOCATOR device defines the measure as x-y coordinates. In addi- tion to being associated with a trigger, each device has selectable screen echoing capabilities. Association and echoing capabilities for each input device are reponed by the functions described in this section. 0 Inquire Input Capabilities Cerror inquire_input_capabilities(valid, table) Clogical *valid; /* device state*/ Ccgidesctab *table; /* CGI input description table*/ inquire_input_capabilities repons the total number of input devices of each class that are supported.

The argument valid returns the value L TRUE if SunCGI is initialized, and L_FALSE otherwise. If valid is set to L_TRUE, the ele- ments of table are set to the quantity and quality of inputs supported. All Sun Workstations support input at the same level. 0 Version C of 17 March 1986