summaryrefslogtreecommitdiff
path: root/src/attr.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2007-07-04 22:44:46 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2007-07-04 22:44:46 +0000
commitc7efe5c02b4d6ac162f348e48a57451596fa5e32 (patch)
treec0b1ca6d58a3f8668d070ab65a967c34c2e7b6ef /src/attr.h
parentc5a5ad0f86737b3d34dcd4345f048961eb6bc6d0 (diff)
downloadnavit-svn-c7efe5c02b4d6ac162f348e48a57451596fa5e32.tar.gz
Merge with modular_map
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@255 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'src/attr.h')
-rw-r--r--src/attr.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/attr.h b/src/attr.h
new file mode 100644
index 00000000..83a12f5b
--- /dev/null
+++ b/src/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