diff options
author | Thomas Haller <thaller@redhat.com> | 2015-02-09 16:57:14 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-02-24 10:35:24 +0100 |
commit | 3bcc5e4bd0bd88b15ab8f84515f0fca52db62823 (patch) | |
tree | 4564386467a36fe19cc001b51451794c4a1e9faa /src/nm-config.h | |
parent | 5c2e1afd1bd8442e1b2efc518e7109f516a00bff (diff) | |
download | NetworkManager-3bcc5e4bd0bd88b15ab8f84515f0fca52db62823.tar.gz |
core: add nm_match_spec_split() function
There are currently three device spec properties: 'main.ignore-carrier',
'main.no-auto-default' and 'keyfile.unmanaged-devices'.
The first two, called g_key_file_parse_value_as_string() to split
the string into individual device specs. This uses ',' as separator
and supports escaping using '\\'.
'keyfile.unmanaged-devices' is split using ',' or ';' as separator
without supporting escaping.
Add a new function nm_match_spec_split(), to unify these two behaviors
and support both formats. That is, both previous formats are mostly
supported, but obviously there are some behavioral changes if the string
contains one of '\\', ',', or ';'.
nm_match_spec_split() is copied from glibs g_key_file_parse_value_as_string()
and adjusted.
Diffstat (limited to 'src/nm-config.h')
0 files changed, 0 insertions, 0 deletions