I was wondering if someone can help me make a driver, that monitors power events in a linux os. I found some code on the net, that claims to do this, and I started a project with this, but I'm missing some classes that I can't find.
This is the code I found:
and the class I can't find, is this one: disabled features.h
I also don't know how to send something back, when a power event occurs, such as shutdown, hibernate, sleep, restart or logoff.
I tried to read the code, but I couldn't understand it, so I would really appreciate it , if someone could tell me where can I add some return statement, so that when one of these events occur, the user knows.
Any help will be greatly appreciated.