Get information about input sources
Name
giiQueryDeviceInfo : Get information about input sources
Synopsis
#include <ggi/gii.h>` int giiQueryDeviceInfo (gii_input stem, uint32_t origin, struct gii_cmddata_devinfo *info);
Description
Though when using GII inputs the exact type of device is fully transparent to the program, information about the device that is actually attached to a given gii input and origin id can be queried, e.g. for configuration interfaces.
For giiQueryDeviceInfo the parameters stem and origin select the input to query. This version is usually used, if you want to identify a device after getting an event from it.
The queried data is put into info. See gii_cmddata_devinfo(3) for the description of the structure.
Return value
Returns 0 on success (info is valid, then), otherwise a gg-error(3) code.