vfs: check userland buffers before reading them.
[haiku.git] / src / servers / power / power_button_monitor.h
blob0d6443bcf7623c805441e32db6f4003001c46011
1 /*
2 * Copyright 2005-2014, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Rene Gollent
7 * Nathan Whitehorn
8 */
9 #ifndef _POWER_BUTTON_MONITOR_H
10 #define _POWER_BUTTON_MONITOR_H
13 #include "power_monitor.h"
16 class PowerButtonMonitor : public PowerMonitor {
17 public:
18 PowerButtonMonitor();
19 virtual ~PowerButtonMonitor();
21 virtual void HandleEvent(int fd);
23 virtual const std::set<int>&
24 FDs() const { return fFDs; }
25 private:
26 std::set<int> fFDs;
30 #endif // _POWER_BUTTON_MONITOR_H