mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-12-26 23:06:44 +01:00
Added support for kernel based LIRC driver
This commit is contained in:
14
lirc.h
14
lirc.h
@@ -4,27 +4,23 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: lirc.h 1.4 2006/01/27 16:00:19 kls Exp $
|
||||
* $Id: lirc.h 5.1 2022/11/26 13:37:06 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __LIRC_H
|
||||
#define __LIRC_H
|
||||
|
||||
#include <sys/un.h>
|
||||
#include "remote.h"
|
||||
#include "thread.h"
|
||||
|
||||
class cLircRemote : public cRemote, private cThread {
|
||||
private:
|
||||
enum { LIRC_KEY_BUF = 30, LIRC_BUFFER_SIZE = 128 };
|
||||
class cLircRemote : public cRemote, protected cThread {
|
||||
protected:
|
||||
int f;
|
||||
struct sockaddr_un addr;
|
||||
virtual void Action(void);
|
||||
bool Connect(void);
|
||||
cLircRemote(const char *Name);
|
||||
public:
|
||||
cLircRemote(const char *DeviceName);
|
||||
virtual ~cLircRemote();
|
||||
virtual bool Ready(void);
|
||||
static void NewLircRemote(const char *Name);
|
||||
};
|
||||
|
||||
#endif //__LIRC_H
|
||||
|
||||
Reference in New Issue
Block a user