Files
neutrino/src/system/proc_tools.h
svenhoefer c70b012bf7 - proc_tools: add some more wrappers
Signed-off-by: Thilo Graf <dbt@novatux.de>
2020-01-05 16:53:14 +01:00

24 lines
851 B
C++

/*
* helper functions to interact with files, usually in the proc filesystem
*
* (C) 2012 Stefan Seyfried <seife@tuxboxcvs.slipkontur.de>
*
* License: GPLv2 or later
*
*/
#ifndef __PROC_TOOLS_H__
#define __PROC_TOOLS_H__
int proc_put(const char *path, const char *value, const int len);
int proc_put(const char *path, const char *value);
int proc_put(const char *path, std::string value);
int proc_put(const char *path, int value);
int proc_put(const char *path, unsigned int value);
int proc_put(const char *path, long value);
int proc_put(const char *path, unsigned long value);
int proc_put(const char *path, long long value);
int proc_put(const char *path, unsigned long long value);
int proc_put(const char *path, bool state);
int proc_get(const char *path, char *value, const int len);
unsigned int proc_get_hex(const char *path);
#endif