cli: make OptionInfo immutable

System Internals / NetworkManager - Thomas Haller [redhat.com] - 12 April 2017 08:12 EDT

Don't mutate global state. For now, hack around it by putting the mutable flags to a separate (global) cache. Obviously, it still uses global data, but it no longer touches the global option_info list.

6763097 cli: make OptionInfo immutable
clients/cli/connections.c | 117 ++++++++++++++++++++++------------
clients/common/nm-meta-setting-desc.h | 3 -
2 files changed, 76 insertions(+), 44 deletions(-)

Upstream: cgit.freedesktop.org


  • Share