diff options
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |