Navigation Menu

Skip to content

Commit

Permalink
Add macro for reading current proximity state
Browse files Browse the repository at this point in the history
  • Loading branch information
spiiroin committed Oct 31, 2013
1 parent d093c37 commit 9be0377
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mce.h
Expand Up @@ -363,4 +363,10 @@ void mce_quit_mainloop(void);
res;\
})

#define proximity_state_get() ({\
gint res = GPOINTER_TO_INT(proximity_sensor_pipe.cached_data);\
mce_log(LL_DEBUG, "proximity_state=%d", res);\
res;\
})

#endif /* _MCE_H_ */

0 comments on commit 9be0377

Please sign in to comment.