aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib.h b/lib.h
index c08b026..e4bf4c1 100644
--- a/lib.h
+++ b/lib.h
@@ -4,15 +4,9 @@
#include <libintl.h>
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
#define _(STRING) gettext(STRING)
-#ifdef __cplusplus
-}
-#endif
extern int get_max_cpu(void);
extern void set_max_cpu(int cpu);
@@ -31,4 +25,12 @@ public:
+
+#include <string>
+using namespace std;
+
+extern void write_sysfs(string filename, string value);
+extern int read_sysfs(string filename);
+
+
#endif \ No newline at end of file