]> Joshua Wise's Git repositories - ambien.git/blame - Ambien.h
Enable compilation for PowerPC and x86_64.
[ambien.git] / Ambien.h
CommitLineData
0ed4d10d
JW
1/*
2 File: Ambien.h
3 Program: Ambien
4 Original author: Michael Roßberg
5 mick@binaervarianz.de
6 Rewritten by: Joshua Wise
7 jwise@andrew.cmu.edu
8 Description: Ambien is a kernel extension to disable sleep-on-clamshell.
9
10 Ambien is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14
15 Ambien is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with Ambien; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23*/
24
25#include <IOKit/IOService.h>
26#include <IOKit/IOWorkLoop.h>
27#include <IOKit/IONotifier.h>
28
29class Ambien : public IOService {
30 OSDeclareDefaultStructors(Ambien);
31
32public:
33 // driver startup and shutdown
34 virtual bool init(OSDictionary * = 0);
35 virtual bool start(IOService* provider);
36 virtual void stop(IOService* provider);
37 virtual void free();
38
39 virtual IOWorkLoop* getWorkLoop();
40 virtual IOReturn message(UInt32 type, IOService *provider, void *arg);
41 virtual IOReturn setPowerState(unsigned long which, IOService *dev);
42
43private:
44
45 IOWorkLoop* _workLoop;
46 IONotifier *notifier;
47
48};
This page took 0.02201 seconds and 4 git commands to generate.