summaryrefslogtreecommitdiffstats
path: root/src/lib/event_config.c
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-03-08 21:31:45 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-03-08 21:31:45 +0100
commite2fdf6c58eba440770624d13e25a63c3d77040db (patch)
tree37e4569af212b47339fa8e6c895e29a22eeaaecf /src/lib/event_config.c
parenta6ee8958dbe6f45f95fca4fa2ea1490c7035be65 (diff)
downloadabrt-e2fdf6c58eba440770624d13e25a63c3d77040db.tar.gz
abrt-e2fdf6c58eba440770624d13e25a63c3d77040db.tar.xz
abrt-e2fdf6c58eba440770624d13e25a63c3d77040db.zip
added event description support into xml parser
- so event now has: action: description of what will happen when this event is used - the main purpose is for the event selector in wizard description: description of the event
Diffstat (limited to 'src/lib/event_config.c')
-rw-r--r--src/lib/event_config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/event_config.c b/src/lib/event_config.c
index 18019178..30335b84 100644
--- a/src/lib/event_config.c
+++ b/src/lib/event_config.c
@@ -31,6 +31,7 @@ void free_event_config(event_config_t *p)
free(p->name);
free(p->title);
free(p->action);
+ free(p->description);
for (GList *opt = p->options; opt; opt = opt->next)
free_event_option(opt->data);
g_list_free(p->options);
@@ -42,7 +43,6 @@ void free_event_config(event_config_t *p)
void load_event_config_data(void)
{
free_event_config_data();
-
DIR *dir = opendir(EVENTS_DIR);
if (!dir)
return;
@@ -72,12 +72,14 @@ void load_event_config_data(void)
char *fullname = concat_path_file(EVENTS_DIR, dent->d_name);
if (xml)
load_event_description_from_file(event_config, fullname);
+
// if (conf)
// load_event_values_from_file(event_config, fullname);
free(fullname);
- *ext = '\0';
+ //we did ext++ so we need ext-- to point to '.'
+ *(--ext) = '\0';
g_hash_table_replace(g_event_config_list, xstrdup(dent->d_name), event_config);
}
}