summaryrefslogtreecommitdiff
path: root/navit/profile_option.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/profile_option.c')
-rw-r--r--navit/profile_option.c55
1 files changed, 25 insertions, 30 deletions
diff --git a/navit/profile_option.c b/navit/profile_option.c
index 8a1049068..307c9de0d 100644
--- a/navit/profile_option.c
+++ b/navit/profile_option.c
@@ -22,41 +22,36 @@
#include "debug.h"
#include "xmlconfig.h"
-struct profile_option
-{
- NAVIT_OBJECT
+struct profile_option {
+ NAVIT_OBJECT
};
-static struct profile_option *
-profile_option_new(struct attr *parent, struct attr **attrs)
-{
- struct profile_option *po=g_new0(struct profile_option, 1);
- po->func=&profile_option_func;
- navit_object_ref((struct navit_object *)po);
- po->attrs=attr_list_dup(attrs);
- dbg(lvl_debug,"return %p\n",po);
- return po;
+static struct profile_option *profile_option_new(struct attr *parent, struct attr **attrs) {
+ struct profile_option *po=g_new0(struct profile_option, 1);
+ po->func=&profile_option_func;
+ navit_object_ref((struct navit_object *)po);
+ po->attrs=attr_list_dup(attrs);
+ dbg(lvl_debug,"return %p",po);
+ return po;
}
-static void
-profile_option_destroy(struct profile_option *po)
-{
- attr_list_free(po->attrs);
- g_free(po);
+static void profile_option_destroy(struct profile_option *po) {
+ attr_list_free(po->attrs);
+ g_free(po);
}
struct object_func profile_option_func = {
- attr_profile_option,
- (object_func_new)profile_option_new,
- (object_func_get_attr)navit_object_get_attr,
- (object_func_iter_new)navit_object_attr_iter_new,
- (object_func_iter_destroy)navit_object_attr_iter_destroy,
- (object_func_set_attr)navit_object_set_attr,
- (object_func_add_attr)navit_object_add_attr,
- (object_func_remove_attr)navit_object_remove_attr,
- (object_func_init)NULL,
- (object_func_destroy)profile_option_destroy,
- (object_func_dup)NULL,
- (object_func_ref)navit_object_ref,
- (object_func_unref)navit_object_unref,
+ attr_profile_option,
+ (object_func_new)profile_option_new,
+ (object_func_get_attr)navit_object_get_attr,
+ (object_func_iter_new)navit_object_attr_iter_new,
+ (object_func_iter_destroy)navit_object_attr_iter_destroy,
+ (object_func_set_attr)navit_object_set_attr,
+ (object_func_add_attr)navit_object_add_attr,
+ (object_func_remove_attr)navit_object_remove_attr,
+ (object_func_init)NULL,
+ (object_func_destroy)profile_option_destroy,
+ (object_func_dup)NULL,
+ (object_func_ref)navit_object_ref,
+ (object_func_unref)navit_object_unref,
};