mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
proc_put, proc_get and proc_get_hex are used in many files.
Avoid duplication by moving them to common/proc_tools.c.
Convert azbox's cVideo to use proc_tools.h
Origin commit data
------------------
Branch: master
Commit: 47941bd849
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-06-24 (Sun, 24 Jun 2012)
------------------
This commit was generated by Migit
21 lines
473 B
C
21 lines
473 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__
|
|
#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
|