mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 10:08:05 +02:00
shared: add nm_copy_func_g_strdup() helper
This commit is contained in:
parent
66d4af6daf
commit
c470cbf705
1 changed files with 8 additions and 0 deletions
|
|
@ -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 **
|
static inline const char **
|
||||||
nm_utils_escaped_tokens_split (const char *str,
|
nm_utils_escaped_tokens_split (const char *str,
|
||||||
const char *delimiters)
|
const char *delimiters)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue