1giiQueryDeviceInfo(3) GGI giiQueryDeviceInfo(3)
2
3
4
6 giiQueryDeviceInfo, giiQueryDeviceInfoByNumber : Get information about
7 input sources
8
10 #include <ggi/gii.h>`
11
12 int giiQueryDeviceInfo (gii_input_t inp, uint32_t origin,
13 gii_cmddata_getdevinfo *info);
14
15 int giiQueryDeviceInfoByNumber(gii_input_t inp, uint32_t number,
16 uint32_t *origin, gii_cmddata_getdevinfo *info);
17
18
20 Though when using GII inputs the exact type of device is fully transā
21 parent to the program, information about the device that is actually
22 attached to a given gii input and origin id can be queried, e.g. for
23 configuration interfaces.
24
25 For giiQueryDeviceInfo the parameters inp and origin select the input
26 to query. This version is usually used, if you want to identify a
27 device after getting an event from it.
28
29 For giiQueryDeviceInfoByNumber the parameters inp and number select the
30 input to query - origin gets set to the origin ID the queried device
31 has. This version is used, when you want to query all known devices.
32
33 The queried data is put into info. See gii_cmddata_getdevinfo(3) for
34 the description of the structure.
35
37 Returns 0 on success (info is valid, then) or -1 otherwise.
38
40 giiQueryValInfo(3)
41
42
43
44libgii-1.0.x 2006-12-30 giiQueryDeviceInfo(3)