Files
recycled-ni-neutrino/src/system/proc_tools.h
vanhofen 60a07440a2 proc_tools: fix typo
Origin commit data
------------------
Branch: ni/coolstream
Commit: fcd2c62c50
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-11-24 (Thu, 24 Nov 2022)

Origin message was:
------------------
- proc_tools: fix typo

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

------------------
This commit was generated by Migit
2022-11-24 22:03:28 +01:00

27 lines
955 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_put_hex(const char *path, int value);
int proc_put_hex(const char *path, unsigned int value);
int proc_get(const char *path, char *value, const int len);
unsigned int proc_get_hex(const char *path);
#endif