core: make NMManager singleton more like others

System Internals / NetworkManager - Dan Winship [redhat.com] - 10 August 2015 08:41 UTC

Rename nm_manager_new() to nm_manager_setup(), and change the local @singleton variable to @singleton_instance. (Also, add a local @self
variable inside nm_manager_setup().)

Also, make NMManager own NMSettings rather than having them both owned by main().

284e15a core: make NMManager singleton more like others
src/main.c | 23 +++++--------
src/nm-manager.c | 98 ++++++++++++++++++++++++++++--------------------------
src/nm-manager.h | 8 ++---
3 files changed, 63 insertions(+), 66 deletions(-)

Upstream: cgit.freedesktop.org


  • Share