From a9a15b453b5dcca597fa4aeee5a2376ce1154b15 Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 19 Jan 1999 13:07:40 +0000 Subject: Added grammar and management of translation tables for events irbox.c -> irman.c --- irtable.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 irtable.h (limited to 'irtable.h') 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_ */ -- cgit v1.1