1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00
vdr/lirc.h

31 lines
613 B
C
Raw Permalink Normal View History

2002-09-29 13:40:45 +02:00
/*
* lirc.h: LIRC remote control
*
* 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 $
2002-09-29 13:40:45 +02:00
*/
#ifndef __LIRC_H
#define __LIRC_H
#include <sys/un.h>
2002-09-29 13:40:45 +02:00
#include "remote.h"
#include "thread.h"
class cLircRemote : public cRemote, private cThread {
private:
enum { LIRC_KEY_BUF = 30, LIRC_BUFFER_SIZE = 128 };
int f;
struct sockaddr_un addr;
2002-09-29 13:40:45 +02:00
virtual void Action(void);
bool Connect(void);
2002-09-29 13:40:45 +02:00
public:
cLircRemote(const char *DeviceName);
2002-09-29 13:40:45 +02:00
virtual ~cLircRemote();
virtual bool Ready(void);
2002-09-29 13:40:45 +02:00
};
#endif //__LIRC_H