summaryrefslogtreecommitdiff
path: root/src/nm-auth-utils.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-04-09 17:03:58 +0200
committerThomas Haller <thaller@redhat.com>2018-04-13 09:09:46 +0200
commitf0bddb44e03aed9d9ca8be0bf63d46dd7ebda15c (patch)
treee8236143f13924807f23931b611a01faa2566913 /src/nm-auth-utils.h
parent798b2a7527bddadcec37b48183da313fbc961e45 (diff)
downloadNetworkManager-f0bddb44e03aed9d9ca8be0bf63d46dd7ebda15c.tar.gz
auth-manager: add helper function nm_auth_call_result_eval()
This makes NMAuthCallResult not only usable from within a NMAuthChain. It makes sense to just call nm-auth-manager directly, but then we need a way to convert the more detailed result into an NMAuthCallResult value.
Diffstat (limited to 'src/nm-auth-utils.h')
-rw-r--r--src/nm-auth-utils.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nm-auth-utils.h b/src/nm-auth-utils.h
index 808da86a51..a641c49dfe 100644
--- a/src/nm-auth-utils.h
+++ b/src/nm-auth-utils.h
@@ -23,14 +23,9 @@
#include "nm-connection.h"
-typedef struct NMAuthChain NMAuthChain;
+#include "nm-auth-manager.h"
-typedef enum {
- NM_AUTH_CALL_RESULT_UNKNOWN,
- NM_AUTH_CALL_RESULT_YES,
- NM_AUTH_CALL_RESULT_AUTH,
- NM_AUTH_CALL_RESULT_NO,
-} NMAuthCallResult;
+typedef struct NMAuthChain NMAuthChain;
typedef void (*NMAuthChainResultFunc) (NMAuthChain *chain,
GError *error,