sleep-monitor: make sleep-monitor not a singleton

System Internals / NetworkManager - Thomas Haller [redhat.com] - 28 April 2016 06:45 UTC

The only user of the sleep-monitor singleton was NMManager anyway. Also, even if we ever get more users that are interested in the SLEEPING signal, we would hook them onto NMManager -- because NMManager should collect, coordinate and possibly forward the SLEEPING signal. In no case, another object should react on the SLEEPING signal and thus bypassing the NMManager.

1e3b2cb sleep-monitor: make sleep-monitor not a singleton
src/nm-manager.c | 2 +-
src/nm-sleep-monitor.c | 26 ++++++++++----------------
src/nm-sleep-monitor.h | 2 +-
3 files changed, 12 insertions(+), 18 deletions(-)

Upstream: cgit.freedesktop.org


  • Share