mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
24 lines
851 B
C++
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
|