Files
recycled-ni-neutrino/src/system/proc_tools.h
vanhofen d4d58c0bb5 proc_tools: add helper member to put values w/o length; ...
align included headers to c++

Signed-off-by: Thilo Graf <dbt@novatux.de>


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

Origin message was:
------------------
- proc_tools: add helper member to put values w/o length; ...

align included headers to c++

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
2017-11-16 20:39:34 +01:00

17 lines
501 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, bool state);
int proc_get(const char *path, char *value, const int len);
unsigned int proc_get_hex(const char *path);
#endif