summaryrefslogtreecommitdiff
path: root/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
commitd71e49df9261a6968e7ffab33c6306914ac1d1c0 (patch)
tree4a1a68e3efefd721b54085b97cf9fb2c0ca43f85 /attr.h
parent17a8019e360078561435b02e9160c4bf888893c7 (diff)
downloadnavit-svn-d71e49df9261a6968e7ffab33c6306914ac1d1c0.tar.gz
Merge with modular_map
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/src@255 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'attr.h')
-rw-r--r--attr.h24
1 files changed, 24 insertions, 0 deletions
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