diff options
author | chatty | 1999-01-12 12:58:18 +0000 |
---|---|---|
committer | chatty | 1999-01-12 12:58:18 +0000 |
commit | 0118246b32fe0ccc5f289cc350f32fb935305959 (patch) | |
tree | 8525f9bc6213b6046d3ce6121398029d76a63bc2 /irdev.h | |
parent | 23abb4b87c7e40ed259dd02f653516f60e55ade4 (diff) | |
download | irbox-0118246b32fe0ccc5f289cc350f32fb935305959.zip irbox-0118246b32fe0ccc5f289cc350f32fb935305959.tar.gz irbox-0118246b32fe0ccc5f289cc350f32fb935305959.tar.bz2 irbox-0118246b32fe0ccc5f289cc350f32fb935305959.tar.xz |
Initial revision
Diffstat (limited to 'irdev.h')
-rw-r--r-- | irdev.h | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -0,0 +1,38 @@ +/* + * + * IRBOX, an Ivy driver for infra-red remote controls + * + * Copyright 1998-1999 + * Centre d'Etudes de la Navigation Aerienne + * + * Device driver + * + * $Id$ + * + */ + + +#ifndef IR_H +#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 (*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 void IrIntr (IrState *ir); +extern int IrGetFd (IrState *ir); + + +#endif |