summaryrefslogtreecommitdiff
path: root/src/irdev.h
diff options
context:
space:
mode:
authorjacomi1999-01-25 18:35:13 +0000
committerjacomi1999-01-25 18:35:13 +0000
commitca51f6abf6debc1b6718f59129886fea04ee12b0 (patch)
treeb074cbd71c73bfa0d39a28f73e19cd8d28a653f6 /src/irdev.h
parentf63e7d593f9a1ca8152ec8180ac052e75c892a60 (diff)
downloadirbox-ca51f6abf6debc1b6718f59129886fea04ee12b0.zip
irbox-ca51f6abf6debc1b6718f59129886fea04ee12b0.tar.gz
irbox-ca51f6abf6debc1b6718f59129886fea04ee12b0.tar.bz2
irbox-ca51f6abf6debc1b6718f59129886fea04ee12b0.tar.xz
new directory structure and data
Diffstat (limited to 'src/irdev.h')
-rw-r--r--src/irdev.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/irdev.h b/src/irdev.h
new file mode 100644
index 0000000..bf0227a
--- /dev/null
+++ b/src/irdev.h
@@ -0,0 +1,44 @@
+/*
+ *
+ * IRBOX, an Ivy driver for infra-red remote controls
+ *
+ * Copyright 1998-1999
+ * Centre d'Etudes de la Navigation Aerienne
+ *
+ * Device driver
+ *
+ * Authors: Francois-Regis Colin <fcolin@cenatoulouse.dgac.fr>
+ * Yann Malichecq
+ * Stephane Chatty <chatty@cenatoulouse.dgac.fr>
+ *
+ * $Id$
+ *
+ * Please refer to file version.h for the
+ * copyright notice regarding this software
+ */
+
+
+#ifndef IR_H
+#define IR_H 1
+
+typedef enum {
+ EVENT_BTN_PRESS,
+ EVENT_BTN_RELEASE
+} IrEvent;
+
+typedef struct ir_state IrState;
+
+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, IrFailCallback f, IrTimerSetter st, IrTimerCanceller ct);
+extern void IrIntr (IrState *ir);
+extern int IrGetFd (IrState *ir);
+
+
+#endif