mglgetrange.c

Retrieving low level ranges

Author

Marcel Sondaar

License

Public Domain

Summary
mglgetrange.cRetrieving low level ranges
Functions
mglGetLastRangeEntryRetrieves a range segment from an graphics component
mglGetEngineRangeGets the valid range of values from a engine property.
mglGetConnectorRangeGets the valid range of values from a connector property.

Functions

mglGetLastRangeEntry

void mglGetLastRangeEntry(int index,
int *first,
int *last,
int *modulus)

Retrieves a range segment from an graphics component

in

indexThe segment to read

inout

firstPointer to an integer to hold the first valid value of the segment.
lastPointer to an integer to hold the last valid value of the segment.
modulusPointer to an integer to hold the increment between successive values.

Arguments may not be null.  If the index is not valid, the result is undefined.  Drivers will indicate unsupported properties by returning a modulus of zero.

mglGetEngineRange

int mglGetEngineRange(int index,
unsigned int property)

Gets the valid range of values from a engine property.

in

indexThe engine to access
propertyThe property of the engine to read.  Often an element of UDI_GFX_PROP.

out

returnThe amount of range segments returned by the driver

mglGetConnectorRange

int mglGetConnectorRange(int index,
unsigned int property)

Gets the valid range of values from a connector property.

in

indexThe connector to access
propertyThe property of the connector to read.  Often an element of UDI_GFX_PROP.

out

returnThe amount of range segments returned by the driver
void mglGetLastRangeEntry(int index,
int *first,
int *last,
int *modulus)
Retrieves a range segment from an graphics component
int mglGetEngineRange(int index,
unsigned int property)
Gets the valid range of values from a engine property.
int mglGetConnectorRange(int index,
unsigned int property)
Gets the valid range of values from a connector property.
Lists the various UDI properties