aboutsummaryrefslogtreecommitdiff
path: root/src/mm-auth.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-10 14:47:40 +0100
committerDan Williams <dcbw@redhat.com>2020-01-23 11:50:23 +0000
commit20ab6550fbf88b6e89d7243c08fe1ba12bf44fdf (patch)
tree521a742ab2aeff3140abe1078a89b9c9a9dc37ac /src/mm-auth.h
parenta6a3db21846248979f7cd1062a2551aac6f9ad3c (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-auth.h')
-rw-r--r--src/mm-auth.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mm-auth.h b/src/mm-auth.h
deleted file mode 100644
index 27b5daef..00000000
--- a/src/mm-auth.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details:
- *
- * Copyright (C) 2010 - 2012 Red Hat, Inc.
- * Copyright (C) 2012 Google, Inc.
- */
-
-#ifndef MM_AUTH_H
-#define MM_AUTH_H
-
-#include "mm-auth-provider.h"
-
-/* Get the default provider */
-MMAuthProvider *mm_auth_get_provider (void);
-
-void mm_auth_shutdown (void);
-
-#endif /* MM_AUTH_H */