7 * XNVCTRLQueryExtension -
9 * Returns True if the extension exists, returns False otherwise.
10 * event_basep and error_basep are the extension event and error
11 * bases. Currently, no extension specific errors or events are
15 Bool XNVCTRLQueryExtension (
22 * XNVCTRLQueryVersion -
24 * Returns True if the extension exists, returns False otherwise.
25 * major and minor are the extension's major and minor version
29 Bool XNVCTRLQueryVersion (
39 * Returns True is the specified screen is controlled by the NVIDIA
40 * driver. Returns False otherwise.
43 Bool XNVCTRLIsNvScreen (
49 * XNVCTRLSetAttribute -
51 * Sets the attribute to the given value. The attributes and their
52 * possible values are listed in NVCtrl.h.
54 * Not all attributes require the display_mask parameter; see
55 * NVCtrl.h for details.
58 * BadValue - The screen or attribute doesn't exist.
59 * BadMatch - The NVIDIA driver is not present on that screen.
62 void XNVCTRLSetAttribute (
65 unsigned int display_mask,
66 unsigned int attribute,
71 * XNVCTRLQueryAttribute -
73 * Returns True if the attribute exists. Returns False otherwise.
74 * If XNVCTRLQueryAttribute returns True, value will contain the
75 * value of the specified attribute.
77 * Not all attributes require the display_mask parameter; see
78 * NVCtrl.h for details.
81 * BadValue - The screen doesn't exist.
82 * BadMatch - The NVIDIA driver is not present on that screen.
86 Bool XNVCTRLQueryAttribute (
89 unsigned int display_mask,
90 unsigned int attribute,
95 * XNVCTRLQueryStringAttribute -
97 * Returns True if the attribute exists. Returns False otherwise.
98 * If XNVCTRLQueryStringAttribute returns True, *ptr will point to an
99 * allocated string containing the string attribute requested. It is
100 * the caller's responsibility to free the string when done.
103 * BadValue - The screen doesn't exist.
104 * BadMatch - The NVIDIA driver is not present on that screen.
105 * BadAlloc - Insufficient resources to fulfill the request.
108 Bool XNVCTRLQueryStringAttribute (
111 unsigned int display_mask,
112 unsigned int attribute,
117 * XNVCTRLQueryValidAttributeValues -
119 * Returns True if the attribute exists. Returns False otherwise. If
120 * XNVCTRLQueryValidAttributeValues returns True, values will indicate
121 * the valid values for the specified attribute; see the description
122 * of NVCTRLAttributeValidValues in NVCtrl.h.
125 Bool XNVCTRLQueryValidAttributeValues (
128 unsigned int display_mask,
129 unsigned int attribute,
130 NVCTRLAttributeValidValuesRec *values
134 * XNVCtrlSelectNotify -
136 * This enables/disables receiving of NV-CONTROL events. The type
137 * specifies the type of event to enable (currently, the only type is
138 * ATTRIBUTE_CHANGED_EVENT); onoff controls whether receiving this
139 * type of event should be enabled (True) or disabled (False).
141 * Returns True if successful, or False if the screen is not
142 * controlled by the NVIDIA driver.
145 Bool XNVCtrlSelectNotify (
155 * XNVCtrlEvent structure
160 unsigned long serial;
161 Bool send_event; /* always FALSE, we don't allow send_events */
165 unsigned int display_mask;
166 unsigned int attribute;
168 } XNVCtrlAttributeChangedEvent;
172 XNVCtrlAttributeChangedEvent attribute_changed;
177 #endif /* __NVCTRLLIB_H */