29 lines
485 B
C
Executable File
29 lines
485 B
C
Executable File
#ifndef __KEY_CLIENT_H__
|
|
#define __KEY_CLIENT_H__
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum
|
|
{
|
|
KEY_DOWN,
|
|
KEY_UP
|
|
} key_event_type;
|
|
|
|
typedef enum
|
|
{
|
|
KEY_BACK_REBOOT,
|
|
KEY_BACK_RESET_FACTORY
|
|
} key_event_code;
|
|
|
|
|
|
typedef struct key_cb_ops{
|
|
void (*on_key_event)(key_event_type key_event,key_event_code key_code);
|
|
}key_cb_ops_t;
|
|
|
|
void key_client_set_cb(key_cb_ops_t *cb_ops);
|
|
void key_client_start();
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif |