示例#1
0
BMAuthChain *
bm_auth_chain_new_raw_message (PolkitAuthority *authority,
                               DBusMessage *message,
                               BMAuthChainResultFunc done_func,
                               gpointer user_data)
{
	return _auth_chain_new (authority, NULL, NULL, message, done_func, user_data);
}
示例#2
0
NMAuthChain *
nm_auth_chain_new_dbus_sender (const char *dbus_sender,
                               gulong user_uid,
                               NMAuthChainResultFunc done_func,
                               gpointer user_data)
{
	return _auth_chain_new (NULL, dbus_sender, user_uid, NULL, done_func, user_data);
}
示例#3
0
BMAuthChain *
bm_auth_chain_new (PolkitAuthority *authority,
                   DBusGMethodInvocation *context,
                   DBusGProxy *proxy,
                   BMAuthChainResultFunc done_func,
                   gpointer user_data)
{
	return _auth_chain_new (authority, context, proxy, NULL, done_func, user_data);
}
示例#4
0
/* Requires an NMAuthSubject */
NMAuthChain *
nm_auth_chain_new_subject (NMAuthSubject *subject,
                           DBusGMethodInvocation *context,
                           NMAuthChainResultFunc done_func,
                           gpointer user_data)
{
	NMAuthChain *chain;

	g_return_val_if_fail (NM_IS_AUTH_SUBJECT (subject), NULL);
	chain = _auth_chain_new (subject, NULL, G_MAXULONG, context, done_func, user_data);

	/* Chains creation from a valid NMAuthSubject cannot fail since the
	 * subject already has all the necessary auth info.
	 */
	g_assert (chain);
	return chain;
}