Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: signal_callback.h

Issue 6715014: Display off is done by a callback into backlight controller (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/power_manager.git
Patch Set: Deleted unused lines, 2010->2011 Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« mock_backlight.h ('K') | « powerd_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: signal_callback.h
diff --git a/signal_callback.h b/signal_callback.h
index 82815385a9a95ac1977ff07ec6f23ebf90c010cb..5d554737e2c57a82d3319fe407c1725f40ffddd0 100644
--- a/signal_callback.h
+++ b/signal_callback.h
@@ -108,4 +108,14 @@
} \
RETURN METHOD(TYPE0, TYPE1);
+// This macro defines a function pointer for the thunk functions defined by
+// the above macros.
+//
+// Usage example:
+// SIGNAL_CALLBACK_PTR(bool, callback_func);
+// is equivalent to:
+// bool (*callback_func)((void*)
+
+#define SIGNAL_CALLBACK_PTR(RETURN, NAME) RETURN (*NAME)(void*)
+
#endif // POWER_MANAGER_SIGNAL_CALLBACK_H_
« mock_backlight.h ('K') | « powerd_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698