From d71e49df9261a6968e7ffab33c6306914ac1d1c0 Mon Sep 17 00:00:00 2001 From: martin-s Date: Wed, 4 Jul 2007 22:44:46 +0000 Subject: Merge with modular_map git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/src@255 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- attr.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 attr.h (limited to 'attr.h') diff --git a/attr.h b/attr.h new file mode 100644 index 00000000..83a12f5b --- /dev/null +++ b/attr.h @@ -0,0 +1,24 @@ +#ifndef ATTR_H +#define ATTR_H + +enum attr_type { +#define ATTR2(x,y) attr_##x=y, +#define ATTR(x) attr_##x, +#include "attr_def.h" +#undef ATTR2 +#undef ATTR +}; + +struct attr { + enum attr_type type; + union { + char *str; + int num; + struct item *item; + } u; +}; + +enum attr_type attr_from_name(char *name); +char * attr_to_name(enum attr_type attr); + +#endif -- cgit v1.2.1