mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 22:20:08 +01: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 **
|
||||
nm_utils_escaped_tokens_split (const char *str,
|
||||
const char *delimiters)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue