mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
rcinput: fix build without nevis_ir.h
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2062 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1528,6 +1528,8 @@ void CRCInput::play_click()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_COOLSTREAM_NEVIS_IR_H
|
||||||
// hint: ir_protocol_t and other useful things are defined in nevis_ir.h
|
// hint: ir_protocol_t and other useful things are defined in nevis_ir.h
|
||||||
void CRCInput::set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address)
|
void CRCInput::set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address)
|
||||||
{
|
{
|
||||||
@@ -1590,3 +1592,8 @@ void CRCInput::set_rc_hw(void)
|
|||||||
|
|
||||||
set_rc_hw(ir_protocol, ir_address);
|
set_rc_hw(ir_protocol, ir_address);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
void CRCInput::set_rc_hw(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@@ -32,12 +32,15 @@
|
|||||||
#ifndef __MOD_rcinput__
|
#ifndef __MOD_rcinput__
|
||||||
#define __MOD_rcinput__
|
#define __MOD_rcinput__
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#ifdef HAVE_COOLSTREAM_NEVIS_IR_H
|
||||||
#include <coolstream/nevis_ir.h>
|
#include <coolstream/nevis_ir.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef KEY_OK
|
#ifndef KEY_OK
|
||||||
#define KEY_OK 0x160
|
#define KEY_OK 0x160
|
||||||
@@ -149,7 +152,9 @@ class CRCInput
|
|||||||
int translate(int code, int num);
|
int translate(int code, int num);
|
||||||
void calculateMaxFd(void);
|
void calculateMaxFd(void);
|
||||||
int checkTimers();
|
int checkTimers();
|
||||||
|
#ifdef HAVE_COOLSTREAM_NEVIS_IR_H
|
||||||
void set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address);
|
void set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address);
|
||||||
|
#endif
|
||||||
public:
|
public:
|
||||||
//rc-code definitions
|
//rc-code definitions
|
||||||
static const neutrino_msg_t RC_Repeat = 0x0400;
|
static const neutrino_msg_t RC_Repeat = 0x0400;
|
||||||
|
Reference in New Issue
Block a user