vfs: check userland buffers before reading them.
[haiku.git] / src / servers / power / lid_monitor.h
blob571aed006e0f231b2885b4955747c91ca3277b38
1 /*
2 * Copyright 2005-2013, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Nathan Whitehorn
7 */
8 #ifndef _LID_MONITOR_H
9 #define _LID_MONITOR_H
12 #include "power_monitor.h"
15 class LidMonitor : public PowerMonitor {
16 public:
17 LidMonitor();
18 virtual ~LidMonitor();
20 virtual void HandleEvent(int fd);
22 virtual const std::set<int>&
23 FDs() const { return fFDs; }
24 private:
25 std::set<int> fFDs;
29 #endif // _LID_MONITOR_H