summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDianne Hackborn2014-03-07 13:00:39 -0600
committerDianne Hackborn2014-03-07 13:00:39 -0600
commit9552cdf434ac1c9ff8730f5492d649845ad4f86c (patch)
tree6eed63de494b181b64a48916e60d2993410f62dd /libsuspend/include
parent7d2998ea18f099eb24027a546cff6093516de7e5 (diff)
downloadplatform-system-core-9552cdf434ac1c9ff8730f5492d649845ad4f86c.tar.gz
platform-system-core-9552cdf434ac1c9ff8730f5492d649845ad4f86c.tar.xz
platform-system-core-9552cdf434ac1c9ff8730f5492d649845ad4f86c.zip
Add ability to have a callback when wakeups happen.
Change-Id: I02ff0e035bf8a97bd1a3b6b1699181fc3a137d79
Diffstat (limited to 'libsuspend/include')
-rw-r--r--libsuspend/include/suspend/autosuspend.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libsuspend/include/suspend/autosuspend.h b/libsuspend/include/suspend/autosuspend.h
index f56fc6acb..10e3d27d2 100644
--- a/libsuspend/include/suspend/autosuspend.h
+++ b/libsuspend/include/suspend/autosuspend.h
@@ -43,6 +43,13 @@ int autosuspend_enable(void);
43 */ 43 */
44int autosuspend_disable(void); 44int autosuspend_disable(void);
45 45
46/*
47 * set_wakeup_callback
48 *
49 * Set a function to be called each time the device wakes up from suspend.
50 */
51void set_wakeup_callback(void (*func)(void));
52
46__END_DECLS 53__END_DECLS
47 54
48#endif 55#endif