When we open a device, the needed information is different for each device. For a screen device, we need the SGLWindow and for a PostScript device an output filename. To be able to have a function that is able to work for any kind of device, I used a variable list of argument. By this way, you can satisfy arguments of any device's opening function.
See Also: OMXCreateVDS()
void OMXOpenDevice(psVDS, pszDeviceName ,...)
VDS psVDS;
Virtual Display Space.
char * pszDeviceName;
Name of requested device. Must exist inside the global
list gpsDeviceInOMX.
Device specific arguments should be added to the argument list.
1-The window (SGLWindow) 2-The height (int) 3-The width (int) OMXOpenDevice(psVDS,pszDeviceName,pseWindows,nHeigth,nWidth);