diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-10 14:47:40 +0100 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2020-01-23 11:50:23 +0000 |
commit | 20ab6550fbf88b6e89d7243c08fe1ba12bf44fdf (patch) | |
tree | 521a742ab2aeff3140abe1078a89b9c9a9dc37ac /src/mm-base-manager.c | |
parent | a6a3db21846248979f7cd1062a2551aac6f9ad3c (diff) |
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().
Diffstat (limited to 'src/mm-base-manager.c')
-rw-r--r-- | src/mm-base-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-base-manager.c b/src/mm-base-manager.c index d5899466..042f2143 100644 --- a/src/mm-base-manager.c +++ b/src/mm-base-manager.c @@ -41,7 +41,7 @@ #include "mm-daemon-enums-types.h" #include "mm-device.h" #include "mm-plugin-manager.h" -#include "mm-auth.h" +#include "mm-auth-provider.h" #include "mm-plugin.h" #include "mm-filter.h" #include "mm-log.h" @@ -1439,7 +1439,7 @@ mm_base_manager_init (MMBaseManager *manager) MMBaseManagerPrivate); /* Setup authorization provider */ - priv->authp = mm_auth_get_provider (); + priv->authp = mm_auth_provider_get (); priv->authp_cancellable = g_cancellable_new (); /* Setup internal lists of device objects */ |