trivial: move back nm_match_spec_string()

Was moved by accident.
This commit is contained in:
Pavel Šimerda
2013-07-04 20:20:27 +02:00
parent c1538496a9
commit 7dcec4d100
2 changed files with 13 additions and 13 deletions

View File

@@ -153,6 +153,19 @@ nm_utils_ip4_prefix_to_netmask (guint32 prefix)
return (guint32) htonl (netmask);
}
gboolean
nm_match_spec_string (const GSList *specs, const char *match)
{
const GSList *iter;
for (iter = specs; iter; iter = g_slist_next (iter)) {
if (!g_ascii_strcasecmp ((const char *) iter->data, match))
return TRUE;
}
return FALSE;
}
gboolean
nm_match_spec_hwaddr (const GSList *specs, const char *hwaddr)
{

View File

@@ -327,19 +327,6 @@ nm_ip6_config_merge_setting (NMIP6Config *ip6_config, NMSettingIP6Config *settin
nm_ip6_config_set_never_default (ip6_config, TRUE);
}
gboolean
nm_match_spec_string (const GSList *specs, const char *match)
{
const GSList *iter;
for (iter = specs; iter; iter = g_slist_next (iter)) {
if (!g_ascii_strcasecmp ((const char *) iter->data, match))
return TRUE;
}
return FALSE;
}
/******************************************************************/
void