diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-03-07 17:32:37 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-03-07 17:32:37 +0100 |
| commit | 62890f4365ce10d71d1e122aec1d65566825b1f6 (patch) | |
| tree | e28b7fdf0692b845c17ea02ac4a60160ae45702c /src/lib | |
| parent | 75d2a56b6420fd65f596b8ee18b02e121147ea4e (diff) | |
added event_config.c stub
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/Makefile.am | 3 | ||||
| -rw-r--r-- | src/lib/event_config.c | 26 |
2 files changed, 28 insertions, 1 deletions
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 9e9a7324..4f800a0e 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -44,7 +44,8 @@ libreport_la_SOURCES = \ parse_release.c \ parse_options.c parse_options.h \ steal_directory.c \ - event_xml_parser.c + event_xml_parser.c \ + event_config.c libreport_la_CPPFLAGS = \ -Wall -Werror \ -I$(srcdir)/../include/report -I$(srcdir)/../include \ diff --git a/src/lib/event_config.c b/src/lib/event_config.c new file mode 100644 index 00000000..77cbaf4b --- /dev/null +++ b/src/lib/event_config.c @@ -0,0 +1,26 @@ +#include "event_config.h" + +GHashTable *g_event_config_list; + +// (Re)loads data from /etc/abrt/events/*.{conf,xml} +void load_event_config_data(void) +{ + /* for each xml file call load_event_description_from_file */ + /* for each conf file call load_even_options_value_from_file? + * - we don't have this + * - should re-use the event_config structure created when parsing xml - if exists + * - or should this one be called first? + */ +} +/* Frees all loaded data */ +void free_event_config_data(void) +{ + +} + +event_config_t *get_event_config(const char *name) +{ + //could g_event_config_list be null? + gpointer event_config = g_hash_table_lookup(g_event_config_list, name); + return event_config; +} |
