system: add seife's proc_tools

Origin commit data
------------------
Branch: ni/coolstream
Commit: bb9313ebb3
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-13 (Mon, 13 Nov 2017)

Origin message was:
------------------
- system: add seife's proc_tools

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-13 21:17:36 +01:00
parent 59ffd5a265
commit b5425ed82d
3 changed files with 80 additions and 0 deletions

20
src/system/proc_tools.h Normal file
View File

@@ -0,0 +1,20 @@
/*
* 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__
#ifdef __cplusplus
extern "C" {
#endif
int proc_put(const char *path, const char *value, const int len);
int proc_get(const char *path, char *value, const int len);
unsigned int proc_get_hex(const char *path);
#ifdef __cplusplus
}
#endif
#endif