mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
- slide: use proc_tools
This commit is contained in:
@@ -27,11 +27,12 @@
|
|||||||
#include <neutrino.h>
|
#include <neutrino.h>
|
||||||
#include <driver/rcinput.h>
|
#include <driver/rcinput.h>
|
||||||
#include <driver/slide.h>
|
#include <driver/slide.h>
|
||||||
#include <unistd.h>
|
#include <system/proc_tools.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#define MAX_HEIGHT 576
|
#define MAX_HEIGHT 576
|
||||||
#define MAX_WIDTH 720
|
#define MAX_WIDTH 720
|
||||||
@@ -56,23 +57,6 @@ COSDSlider::~COSDSlider()
|
|||||||
StopSlide();
|
StopSlide();
|
||||||
}
|
}
|
||||||
|
|
||||||
int COSDSlider::proc_put(const char *path, char *value, int len)
|
|
||||||
{
|
|
||||||
int ret, ret2;
|
|
||||||
int pfd = open(path, O_WRONLY);
|
|
||||||
|
|
||||||
if (pfd < 0)
|
|
||||||
return pfd;
|
|
||||||
|
|
||||||
ret = write(pfd, value, len);
|
|
||||||
ret2 = close(pfd);
|
|
||||||
|
|
||||||
if (ret2 < 0)
|
|
||||||
return ret2;
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
void COSDSlider::setValue(int val)
|
void COSDSlider::setValue(int val)
|
||||||
{
|
{
|
||||||
//printf("setvalue: %d\n",val);
|
//printf("setvalue: %d\n",val);
|
||||||
|
Reference in New Issue
Block a user