summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-03-14 21:42:44 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-03-14 21:42:44 +0100
commitc3295e8741d5f35e30301933bd853bf6c9369588 (patch)
treeca5fc590dc54e6815e9630abbf424804e7357308 /src/lib
parent1147945856ed4431ab3b49f88c8c0aa11c6ad8e1 (diff)
downloadabrt-c3295e8741d5f35e30301933bd853bf6c9369588.tar.gz
abrt-c3295e8741d5f35e30301933bd853bf6c9369588.tar.xz
abrt-c3295e8741d5f35e30301933bd853bf6c9369588.zip
abrt-gui: save event settings in gnome keyring
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/event_config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/event_config.c b/src/lib/event_config.c
index 0f5c0f62..313c0f6a 100644
--- a/src/lib/event_config.c
+++ b/src/lib/event_config.c
@@ -44,6 +44,14 @@ static int cmp_event_option_name_with_string(gconstpointer a, gconstpointer b)
return strcmp(((event_option_t *)a)->name, (char *)b);
}
+event_option_t *get_event_option_from_list(const char *name, GList *options)
+{
+ GList *elem = g_list_find_custom(options, name, &cmp_event_option_name_with_string);
+ if(elem)
+ return (event_option_t *)elem->data;
+ return NULL;
+}
+
/* (Re)loads data from /etc/abrt/events/foo.{xml,conf} */
void load_event_config_data(void)
{