summaryrefslogtreecommitdiff
path: root/platform/x11/power_x11.h
diff options
context:
space:
mode:
authorMaxim Sheronov <maxim.sheronov@gmail.com>2017-09-12 22:09:06 +0300
committerMaxim Sheronov <maxim.sheronov@gmail.com>2017-09-13 20:57:07 +0300
commit0fffa45158bebeb4aaba1df1d271c000fffbe7f7 (patch)
tree369918b0d7c9f367a7396c3584ac84ab550bd103 /platform/x11/power_x11.h
parent69017974beb16dcfa971f9b6f33a4f005be57bef (diff)
Fix enums bindings
Add missed bindings for enums Move some enums to class to have correct output of api.json
Diffstat (limited to 'platform/x11/power_x11.h')
-rw-r--r--platform/x11/power_x11.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/x11/power_x11.h b/platform/x11/power_x11.h
index e34223036d..7fc258bc0d 100644
--- a/platform/x11/power_x11.h
+++ b/platform/x11/power_x11.h
@@ -33,14 +33,14 @@
#include "os/dir_access.h"
#include "os/file_access.h"
-#include "os/power.h"
+#include "os/os.h"
class PowerX11 {
private:
int nsecs_left;
int percent_left;
- PowerState power_state;
+ OS::PowerState power_state;
FileAccessRef open_power_file(const char *base, const char *node, const char *key);
bool read_power_file(const char *base, const char *node, const char *key, char *buf, size_t buflen);
@@ -58,7 +58,7 @@ public:
PowerX11();
virtual ~PowerX11();
- PowerState get_power_state();
+ OS::PowerState get_power_state();
int get_power_seconds_left();
int get_power_percent_left();
};