mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-14 09:38:04 +02:00
core: add helper to access authentication result
This commit is contained in:
parent
3391a00354
commit
1064397904
2 changed files with 12 additions and 0 deletions
|
|
@ -165,6 +165,15 @@ nm_auth_chain_set_data (NMAuthChain *self,
|
|||
}
|
||||
}
|
||||
|
||||
NMAuthCallResult
|
||||
nm_auth_chain_get_result (NMAuthChain *self, const char *permission)
|
||||
{
|
||||
g_return_val_if_fail (self != NULL, NM_AUTH_CALL_RESULT_UNKNOWN);
|
||||
g_return_val_if_fail (permission != NULL, NM_AUTH_CALL_RESULT_UNKNOWN);
|
||||
|
||||
return GPOINTER_TO_UINT (nm_auth_chain_get_data (self, permission));
|
||||
}
|
||||
|
||||
static void
|
||||
nm_auth_chain_check_done (NMAuthChain *self)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -76,6 +76,9 @@ void nm_auth_chain_set_data (NMAuthChain *chain,
|
|||
gpointer data,
|
||||
GDestroyNotify data_destroy);
|
||||
|
||||
NMAuthCallResult nm_auth_chain_get_result (NMAuthChain *chain,
|
||||
const char *permission);
|
||||
|
||||
gboolean nm_auth_chain_add_call (NMAuthChain *chain,
|
||||
const char *permission,
|
||||
gboolean allow_interaction);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue