mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 15:48:06 +02:00
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:
parent
ca869bff9f
commit
07610da4ca
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue