Added support for kernel based LIRC driver

This commit is contained in:
Klaus Schmidinger
2022-11-26 13:37:06 +01:00
parent 6192ca81d9
commit abb82a2396
6 changed files with 145 additions and 23 deletions

14
lirc.h
View File

@@ -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