IEGD_ESCAPE(3X11)

NAME
iegd_query_extension, iegd_query_version, iegd_set_client_version, iegd_escape

SYNTAX

#include <X11/extensions/iegd_escape.h>

Bool iegd_query_extension (
	Display *dpy,
	int *event_basep,
	int *error_basep);

Status iegd_query_version (
	Display *dpy,
	int *major_versionp,
	int *minor_versionp);

Bool iegd_set_client_version(
	Display *dpy);

Bool iegd_escape(
	Display *dpy,
	unsigned long escape_function,
	unsigned long in_size,
	void *in_data,
	unsigned long out_size,
	void *out_data);

DESCRIPTION
The Intel(R) Embedded Graphics Driver Escape Extension adds the capability to control and query the IEGD driver.

The Intel(R) Embedded Graphics Driver Escape Extension provides the following capabilities:

* Get number of modes for specific display.
* Get available modes for specific display.
* Enable / Disable specific display port.
* Get number of attributes for specific display port.
* Get available attributes for specific display port.
* Set attribute for specific display port.
* Set display rotation and flip.
* Get display rotation and flip status.
* Get driver name, version, build number and build date.
* Get display port information.
* Get current display configuration.
* Get number of valid display configurations.
* Get valid display configuration list.
* Set display configuration.
* Get overlay color correction values.
* Set overlay color correction values.
* Get display port EDID information.
* Get overlay color parameters.

FUNCTION OVERVIEW
iegd_query_extension is used to determine if the extension has been loaded and is available for use. Returns TRUE if the extension can be used. Trying to use the extension when it hasn't been loaded will result in a X error.

iegd_query_version gets the version of the protocol currently loaded.

iegd_set_client_version informs the extension of the client's protocol version. This allows for the client/server to operate even if the protocol version is out of sync.

iegd_escape requests that the driver perform one of the specific functions. The functions is one from the list above. Depending on the function, it may require input data and may return data.

EXAMPLES
#include <X11/extensions/intel_escape.h>
int main(int argc, char **argv)
{
	Display *dpy;
	int status;
	iegd_esc_driver_info_t driver_info;
	dpy = XOpenDisplay(":0.0");
	status = iegd_escape(dpy, INTEL_ESCAPE_GET_DRIVER_INFO, 0, (void *)NULL,
	sizeof(iegd_esc_driver_info_t), (void *)&driver_info);
	if (status == INTEL_ESCAPE_SUCCESS) {
		printf(" driver name:    %s, driver_info.name);
		printf(" driver version: %ld.%ld.%ld, driver_info.major,
			driver_info.minor, driver_info.build);
		printf(" driver date:    %s, driver_info.data);
	} else {
		printf("Failed to get driver info);
	}
	XCloseDisplay(dpy);
	return 0;
}

BUGS
This manual pages needs a lot more work.

SEE ALSO
Intel(R) Embedded Graphics Driver User's Guide