diff options
author | Dan Williams <dcbw@redhat.com> | 2011-05-11 16:01:12 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-05-11 16:01:12 -0500 |
commit | 74d798b6dd8b89099e3bc9f6326e527cf38b03a7 (patch) | |
tree | ab63a56c62d29979d8a9260b5654677447b3b5b2 /src/nm-dhcp6-config.c | |
parent | 6109388df2439df433724ff2f33982e18d0e30a8 (diff) |
dispatcher: pass DHCP options as string:string hash
This is what was originally intended, but the NM-side code wasn't
doing this due to an oversight...
Diffstat (limited to 'src/nm-dhcp6-config.c')
-rw-r--r-- | src/nm-dhcp6-config.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nm-dhcp6-config.c b/src/nm-dhcp6-config.c index fb6ccce50..885e5f840 100644 --- a/src/nm-dhcp6-config.c +++ b/src/nm-dhcp6-config.c @@ -101,6 +101,23 @@ nm_dhcp6_config_get_option (NMDHCP6Config *self, const char *key) return value ? g_value_get_string (value) : NULL; } +/* Caller owns the list, but not the values in the list */ +GSList * +nm_dhcp6_config_list_options (NMDHCP6Config *self) +{ + GHashTableIter iter; + const char *option = NULL; + GSList *list = NULL; + + g_return_val_if_fail (NM_IS_DHCP6_CONFIG (self), NULL); + + g_hash_table_iter_init (&iter, NM_DHCP6_CONFIG_GET_PRIVATE (self)->options); + while (g_hash_table_iter_next (&iter, (gpointer) &option, NULL)) + list = g_slist_prepend (list, (gpointer) option); + + return list; +} + const char * nm_dhcp6_config_get_dbus_path (NMDHCP6Config *self) { |