auth-provider: refactor and simplify
The auth provider setup is a bit over-engineered. Simplify it by making a single MMAuthProvider object that may or may not use polkit, depending on configure options. This object is also setup as a singleton object using the helper MM_DEFINE_SINGLETON_GETTER().
This commit is contained in:
committed by
Dan Williams
parent
a6a3db2184
commit
20ab6550fb
@@ -286,8 +286,6 @@ ModemManager_SOURCES = \
|
||||
mm-utils.h \
|
||||
mm-private-boxed-types.h \
|
||||
mm-private-boxed-types.c \
|
||||
mm-auth.h \
|
||||
mm-auth.c \
|
||||
mm-auth-provider.h \
|
||||
mm-auth-provider.c \
|
||||
mm-filter.h \
|
||||
@@ -355,11 +353,6 @@ ModemManager_SOURCES = \
|
||||
|
||||
nodist_ModemManager_SOURCES = $(DAEMON_ENUMS_GENERATED)
|
||||
|
||||
# Additional Polkit support
|
||||
if WITH_POLKIT
|
||||
ModemManager_SOURCES += mm-auth-provider-polkit.h mm-auth-provider-polkit.c
|
||||
endif
|
||||
|
||||
# Additional suspend/resume support via systemd
|
||||
if WITH_SYSTEMD_SUSPEND_RESUME
|
||||
ModemManager_SOURCES += mm-sleep-monitor.h mm-sleep-monitor.c
|
||||
|
||||
Reference in New Issue
Block a user