blob: c819a9fe29d828ec937b92a2d26d5a7f7ba7bc01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/**
* Copyright (C) ARM Limited 2013-2016. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef UEVENT_H
#define UEVENT_H
struct UEventResult {
const char *mAction;
const char *mDevPath;
const char *mSubsystem;
char mBuf[1<<13];
};
class UEvent {
public:
UEvent();
~UEvent();
bool init();
bool read(UEventResult *const result);
int getFd() const { return mFd; }
private:
int mFd;
// Intentionally undefined
UEvent(const UEvent &);
UEvent &operator=(const UEvent &);
};
#endif // UEVENT_H
|