mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 09:20:23 +01:00
auth-chain: add nm_auth_chain_get_context() accessor
Will be used later. Also rename "struct NMAuthChain" to "struct _NMAuthChain". It follows how we commonly name this kind of struct.
This commit is contained in:
parent
cb7cfc3f12
commit
89bfb64af5
2 changed files with 12 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
struct NMAuthChain {
|
||||
struct _NMAuthChain {
|
||||
|
||||
CList parent_lst;
|
||||
|
||||
|
|
@ -266,6 +266,14 @@ nm_auth_chain_get_subject (NMAuthChain *self)
|
|||
return self->subject;
|
||||
}
|
||||
|
||||
GDBusMethodInvocation *
|
||||
nm_auth_chain_get_context (NMAuthChain *self)
|
||||
{
|
||||
g_return_val_if_fail (self, NULL);
|
||||
|
||||
return self->context;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef struct NMAuthChain NMAuthChain;
|
||||
typedef struct _NMAuthChain NMAuthChain;
|
||||
|
||||
typedef void (*NMAuthChainResultFunc) (NMAuthChain *chain,
|
||||
GDBusMethodInvocation *context,
|
||||
|
|
@ -53,6 +53,8 @@ void nm_auth_chain_destroy (NMAuthChain *chain);
|
|||
|
||||
NMAuthSubject *nm_auth_chain_get_subject (NMAuthChain *self);
|
||||
|
||||
GDBusMethodInvocation *nm_auth_chain_get_context (NMAuthChain *self);
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
struct CList;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue