shared: add nm_copy_func_g_strdup() helper

This commit is contained in:
Thomas Haller 2020-07-23 10:50:40 +02:00
parent 66d4af6daf
commit c470cbf705
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -525,6 +525,14 @@ char **_nm_utils_strv_cleanup (char **strv,
/*****************************************************************************/
static inline gpointer
nm_copy_func_g_strdup (gconstpointer arg, gpointer user_data)
{
return g_strdup (arg);
}
/*****************************************************************************/
static inline const char **
nm_utils_escaped_tokens_split (const char *str,
const char *delimiters)