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:
Thomas Haller 2019-12-23 10:54:16 +01:00
parent cb7cfc3f12
commit 89bfb64af5
2 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -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;