summaryrefslogtreecommitdiff
path: root/irdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'irdev.h')
-rw-r--r--irdev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/irdev.h b/irdev.h
index f8875f6..a371666 100644
--- a/irdev.h
+++ b/irdev.h
@@ -16,21 +16,21 @@
#define IR_H 1
typedef enum {
- EVENT_BTN_PRESS_TV_VOL_UP,
EVENT_BTN_PRESS,
EVENT_BTN_RELEASE
} IrEvent;
typedef struct ir_state IrState;
-typedef void (*IrEvtCallback) (IrState *ir, IrEvent event, const char *value );
+typedef void (*IrEvtCallback) (IrState *ir, const unsigned char *code );
+typedef void (*IrFailCallback) (IrState *ir);
typedef void (*IrTimerCallback) (void * id, IrState *ir, int delta );
typedef void* (*IrTimerSetter) (IrTimerCallback cb, long value, void *data );
typedef void (*IrTimerCanceller) (void *timerid );
extern IrState* IrOpen (const char *name);
extern void IrClose (IrState *ir);
-extern int IrInit (IrState *ir, IrEvtCallback cb, IrTimerSetter st, IrTimerCanceller ct);
+extern int IrInit (IrState *ir, IrEvtCallback cb, IrFailCallback f, IrTimerSetter st, IrTimerCanceller ct);
extern void IrIntr (IrState *ir);
extern int IrGetFd (IrState *ir);