gii_cmd_event, gii_cmd_nodata_event : LibGII commands and information events
#include <ggi/events.h> typedef struct { COMMON_DATA; uint32 code; } gii_cmd_nodata_event; #define GII_CMD_DATA_MAX (248-sizeof(gii_cmd_nodata_event)) typedef struct gii_cmd_event { COMMON_DATA; uint32 code; uint8 data[GII_CMD_DATA_MAX]; } gii_cmd_event;
These are used internally either to the application or the kernel. The same event is used for both Command and Information events.
gii_cmd_event is the basic structure for evCommand and evInformation events. It may need to be casted to some other structure (depending on code) to access the data.
One use of evCommand is to convey some capabilities of a GII device, via the GII_CMDCODE_GETDEVINFO command code.