Skip to content

Commit

Permalink
[datapipe] Add datapipe for tracking finger-on-screen state. JB#33644
Browse files Browse the repository at this point in the history
  • Loading branch information
spiiroin committed Jan 7, 2016
1 parent a8c4d46 commit 43d1f6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions datapipe.c
Expand Up @@ -196,6 +196,9 @@ datapipe_struct shutting_down_pipe;
/** Device Lock state; read only */
datapipe_struct device_lock_state_pipe;

/** touchscreen input detected; read only */
datapipe_struct touch_detected_pipe;

/** touchscreen input grab required; read/write */
datapipe_struct touch_grab_wanted_pipe;

Expand Down Expand Up @@ -918,6 +921,8 @@ void mce_datapipe_init(void)
0, GINT_TO_POINTER(FALSE));
setup_datapipe(&device_lock_state_pipe, READ_ONLY, DONT_FREE_CACHE,
0, GINT_TO_POINTER(DEVICE_LOCK_UNDEFINED));
setup_datapipe(&touch_detected_pipe, READ_WRITE, DONT_FREE_CACHE,
0, GINT_TO_POINTER(FALSE));
setup_datapipe(&touch_grab_wanted_pipe, READ_WRITE, DONT_FREE_CACHE,
0, GINT_TO_POINTER(FALSE));
setup_datapipe(&touch_grab_active_pipe, READ_ONLY, DONT_FREE_CACHE,
Expand Down Expand Up @@ -992,6 +997,7 @@ void mce_datapipe_quit(void)
free_datapipe(&device_lock_state_pipe);
free_datapipe(&touch_grab_active_pipe);
free_datapipe(&touch_grab_wanted_pipe);
free_datapipe(&touch_detected_pipe);
free_datapipe(&keypad_grab_active_pipe);
free_datapipe(&keypad_grab_wanted_pipe);
free_datapipe(&music_playback_pipe);
Expand Down
1 change: 1 addition & 0 deletions datapipe.h
Expand Up @@ -144,6 +144,7 @@ extern datapipe_struct packagekit_locked_pipe;
extern datapipe_struct update_mode_pipe;
extern datapipe_struct shutting_down_pipe;
extern datapipe_struct device_lock_state_pipe;
extern datapipe_struct touch_detected_pipe;
extern datapipe_struct touch_grab_wanted_pipe;
extern datapipe_struct touch_grab_active_pipe;
extern datapipe_struct keypad_grab_wanted_pipe;
Expand Down

0 comments on commit 43d1f6d

Please sign in to comment.