mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 13:30:28 +01:00
auth-utils: add nm_auth_chain_get_subject()
This commit is contained in:
parent
be49a59fb6
commit
e49cc5dfcd
2 changed files with 10 additions and 0 deletions
|
|
@ -223,6 +223,14 @@ nm_auth_chain_set_data_ulong (NMAuthChain *self,
|
|||
nm_auth_chain_set_data (self, tag, ptr, g_free);
|
||||
}
|
||||
|
||||
NMAuthSubject *
|
||||
nm_auth_chain_get_subject (NMAuthChain *self)
|
||||
{
|
||||
g_return_val_if_fail (self != NULL, NULL);
|
||||
|
||||
return self->subject;
|
||||
}
|
||||
|
||||
NMAuthCallResult
|
||||
nm_auth_chain_get_result (NMAuthChain *self, const char *permission)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -92,5 +92,7 @@ gboolean nm_auth_is_subject_in_acl (NMConnection *connection,
|
|||
NMAuthSubject *subect,
|
||||
char **out_error_desc);
|
||||
|
||||
NMAuthSubject *nm_auth_chain_get_subject (NMAuthChain *self);
|
||||
|
||||
#endif /* __NETWORKMANAGER_MANAGER_AUTH_H__ */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue