{
int type;//focus in/out
int timestamp;
- void *user_data;
bool focus_in;
} mmifw_event_focus;
typedef struct {
int type;//state change
int timestamp;
- void *user_data;
int state;
int old_state;
- void *data;//auxiliary data
} mmifw_event_state_change;
typedef struct {
int type;
int timestamp;
- void *user_data;
char *source;//event source information like voice, gesture, key, vision, and so on
} mmifw_event_wakeup;
{
int type;//up, down, left, right, select, back, ...
int timestamp;
- void *user_data;
int keycode;
bool key_down;
char *keyname;
typedef struct {
int type;//swipe up, down, left, right, yes, ...
int timestamp;
- void *user_data;
char *source;//event source information
} mmifw_event_gesture;
typedef struct {
int type;//voice up, down, left, right, select, back, ...
int timestamp;
- void *user_data;
char *source;//event source information
} mmifw_event_voice;
typedef struct {
int type;//action play/pause/resume/stop/execute/launch/revoke/volume ...
int timestamp;
- void *user_data;
char *cmd;
char **args;
int nargs;
{
int type;//feedback positive, feedback negative, feedback comment
int timestamp;
- void *user_data;
char *feedback;
char *comment;
} mmifw_event_feedback;