proc_tools: add some more wrappers

Origin commit data
------------------
Branch: ni/coolstream
Commit: ee0807f048
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-12-29 (Sun, 29 Dec 2019)

Origin message was:
------------------
- proc_tools: add some more wrappers

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-12-29 00:17:23 +01:00
parent 958b51cc92
commit 5508af3d83
2 changed files with 44 additions and 0 deletions

View File

@@ -10,6 +10,13 @@
#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);