diff options
author | chatty | 1999-01-19 13:06:56 +0000 |
---|---|---|
committer | chatty | 1999-01-19 13:06:56 +0000 |
commit | d5c5e0bcd952c2b58fd02409d01b10da83872ef0 (patch) | |
tree | 09551e4362ea2286d2e6c37e111d4097e2c8f3a5 /irdev.h | |
parent | 42349d1a03a5d67099e1e777ce91ee3846514b15 (diff) | |
download | irbox-d5c5e0bcd952c2b58fd02409d01b10da83872ef0.zip irbox-d5c5e0bcd952c2b58fd02409d01b10da83872ef0.tar.gz irbox-d5c5e0bcd952c2b58fd02409d01b10da83872ef0.tar.bz2 irbox-d5c5e0bcd952c2b58fd02409d01b10da83872ef0.tar.xz |
Changed callback mechanism
Added a callack for initialization failures.
Diffstat (limited to 'irdev.h')
-rw-r--r-- | irdev.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |