From 0fffa45158bebeb4aaba1df1d271c000fffbe7f7 Mon Sep 17 00:00:00 2001 From: Maxim Sheronov Date: Tue, 12 Sep 2017 22:09:06 +0300 Subject: Fix enums bindings Add missed bindings for enums Move some enums to class to have correct output of api.json --- platform/x11/power_x11.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/x11/power_x11.h') 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(); }; -- cgit v1.2.3