1gii_cmd_event(3)                      GGI                     gii_cmd_event(3)
2
3
4

NAME

6       gii_cmd_event,  gii_cmd_nodata_event  : LibGII commands and information
7       events
8

SYNOPSIS

10       #include <ggi/events.h>
11
12       typedef struct {
13
14           COMMON_DATA;
15
16           uint32_t  code;
17
18       } gii_cmd_nodata_event;
19
20       #define GII_CMD_DATA_MAX  (248-sizeof(gii_cmd_nodata_event))
21
22       typedef struct gii_cmd_event {
23
24           COMMON_DATA;
25
26           uint32_t  code;
27           uint8_t   data[GII_CMD_DATA_MAX];
28
29       } gii_cmd_event;
30
31

DESCRIPTION

33       These are used internally either to the application or the kernel.  The
34       same event is used for both Command and Information events.
35

GENERATED EVENTS

37       gii_cmd_event  is  the  basic structure for evCommand and evInformation
38       events.  It may need to be casted to some other structure (depending on
39       code) to access the data.
40

STRUCTURE MEMBERS

42       code   The command or request code.
43
44
45       data   Provides  raw access to the device and/or command specific data.
46              The recipient must not store references to the data. If the data
47              information is needed afterwards, copy it!
48
49

DEVICE INFORMATION

51       One  use  of  evCommand is to convey some capabilities of a GII device,
52       via the GII_CMDCODE_GETDEVINFO command code.
53

SEE ALSO

55       gii_event(3), gii_cmddata_getdevinfo(3)
56
57
58
59libgii-1.0.x                      2006-12-30                  gii_cmd_event(3)
Impressum