diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-07-16 11:34:07 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-07-16 11:34:07 +0000 |
commit | 5e0d49acd21fc9d8a0b0eabda721acb78aa7a1a7 (patch) | |
tree | 0d136dab2dedaacef881aa3079cf80727d1f63ee /navit/layout.c | |
parent | b46a9202a6ac51eb340587f63a1878598408309d (diff) | |
download | navit-5e0d49acd21fc9d8a0b0eabda721acb78aa7a1a7.tar.gz |
Add:Core:Changed layout_func to new scheme
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5189 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/layout.c')
-rw-r--r-- | navit/layout.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/navit/layout.c b/navit/layout.c index 111581155..21d10ab53 100644 --- a/navit/layout.c +++ b/navit/layout.c @@ -24,6 +24,7 @@ #include "layout.h" #include "coord.h" #include "debug.h" +#include "xmlconfig.h" struct layout * layout_new(struct attr *parent, struct attr **attrs) @@ -566,3 +567,20 @@ element_add_attr(struct element *e, struct attr *attr) return 0; } } + +struct object_func layout_func = { + attr_layout, + (object_func_new)layout_new, + (object_func_get_attr)layout_get_attr, + (object_func_iter_new)layout_attr_iter_new, + (object_func_iter_destroy)layout_attr_iter_destroy, + (object_func_set_attr)NULL, + (object_func_add_attr)layout_add_attr, + (object_func_remove_attr)NULL, + (object_func_init)NULL, + (object_func_destroy)NULL, + (object_func_dup)NULL, + (object_func_ref)NULL, + (object_func_unref)NULL, +}; + |