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)
{