shared: add mutable union field NMUtilsNamedValue.{name,value_str}_mutable

NMUtilsNamedValue is a generic tuple that we use for different purposes.
Often we require a mutable string, so add a union alias for that case.
This commit is contained in:
Thomas Haller 2021-03-15 20:08:00 +01:00
parent ca869bff9f
commit 07610da4ca
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1727,9 +1727,11 @@ typedef struct {
union {
NMUtilsNamedEntry named_entry;
const char * name;
char * name_mutable;
};
union {
const char *value_str;
char * value_str_mutable;
gpointer value_ptr;
};
} NMUtilsNamedValue;