summaryrefslogtreecommitdiff
path: root/irtable.h
diff options
context:
space:
mode:
authorchatty1999-01-19 13:07:40 +0000
committerchatty1999-01-19 13:07:40 +0000
commita9a15b453b5dcca597fa4aeee5a2376ce1154b15 (patch)
tree827650e3958849146e821e7d56846e9f50a26f0b /irtable.h
parentd5c5e0bcd952c2b58fd02409d01b10da83872ef0 (diff)
downloadirbox-a9a15b453b5dcca597fa4aeee5a2376ce1154b15.zip
irbox-a9a15b453b5dcca597fa4aeee5a2376ce1154b15.tar.gz
irbox-a9a15b453b5dcca597fa4aeee5a2376ce1154b15.tar.bz2
irbox-a9a15b453b5dcca597fa4aeee5a2376ce1154b15.tar.xz
Added grammar and management of translation tables for events
irbox.c -> irman.c
Diffstat (limited to 'irtable.h')
-rw-r--r--irtable.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/irtable.h b/irtable.h
new file mode 100644
index 0000000..ed751fd
--- /dev/null
+++ b/irtable.h
@@ -0,0 +1,31 @@
+/*
+ *
+ * IRBOX, an Ivy driver for infra-red remote controls
+ *
+ * Copyright 1998-1999
+ * Centre d'Etudes de la Navigation Aerienne
+ *
+ * Tables for decoding events
+ *
+ * $Id$
+ *
+ */
+
+#ifndef irtable_h_
+#define irtable_h_
+
+typedef struct {
+ const char* name;
+ const char* type;
+} IrTable;
+
+extern IrTable* IrTableReadFile (const char*);
+extern IrTable* IrCreateTable ();
+extern void IrTableName (IrTable*, const char*);
+extern void IrTableType (IrTable*, const char*);
+extern void IrTableAddBrand (IrTable*, const char*);
+extern void IrTableAddKey (IrTable*, const char*, int, int, int, int, int, int);
+
+extern int IrTableTranslateCode (const unsigned char*, IrTable**, const char**);
+
+#endif /* irtable_h_ */