src/driver/rcinput.cpp: change ifdefs for headers and set_rc_hw

This commit is contained in:
[CST] Focus
2013-01-11 14:04:07 +04:00
parent 2aea312e7b
commit 6380763209
2 changed files with 5 additions and 2 deletions

View File

@@ -1574,7 +1574,7 @@ void CRCInput::play_click()
}
#ifdef HAVE_COOLSTREAM_CS_IR_GENERIC_H
#ifdef IOC_IR_SET_PRI_PROTOCOL
// hint: ir_protocol_t and other useful things are defined in cs_ir_generic.h
void CRCInput::set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address)
{

View File

@@ -41,6 +41,9 @@
#ifdef HAVE_COOLSTREAM_CS_IR_GENERIC_H
#include <coolstream/cs_ir_generic.h>
#endif
#ifdef HAVE_COOLSTREAM_NEVIS_IR_H
#include <nevis_ir.h>
#endif
#ifndef KEY_OK
#define KEY_OK 0x160
@@ -152,7 +155,7 @@ class CRCInput
int translate(int code, int num);
void calculateMaxFd(void);
int checkTimers();
#ifdef HAVE_COOLSTREAM_CS_IR_GENERIC_H
#ifdef IOC_IR_SET_PRI_PROTOCOL
void set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address);
#endif
public: