summaryrefslogtreecommitdiffstats
path: root/src/shared/spawn-ask-password-agent.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-11-15 11:11:52 +0100
committerLennart Poettering <lennart@poettering.net>2019-11-15 11:11:52 +0100
commitc59e2ec6961e6ce1acb97bb2cdb7499dc23bc23d (patch)
treea07981df67c58ab09c25cf5b78f0b50faa99dcb1 /src/shared/spawn-ask-password-agent.h
parentpolkit-agent: don't use an inline function (diff)
downloadsystemd-c59e2ec6961e6ce1acb97bb2cdb7499dc23bc23d.tar.xz
systemd-c59e2ec6961e6ce1acb97bb2cdb7499dc23bc23d.zip
ask-password-agent: introduce ask_password_agent_open_if_enabled()
This makes the ask-password agent handling more alike the polkit agent handling again, and introduces ask_password_agent_open_if_enabled() that works just like the already existing polkit_agent_open_if_enabled().
Diffstat (limited to 'src/shared/spawn-ask-password-agent.h')
-rw-r--r--src/shared/spawn-ask-password-agent.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/spawn-ask-password-agent.h b/src/shared/spawn-ask-password-agent.h
index 97e73bda44..97b12fe268 100644
--- a/src/shared/spawn-ask-password-agent.h
+++ b/src/shared/spawn-ask-password-agent.h
@@ -1,5 +1,11 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
+#include <stdbool.h>
+
+#include "bus-util.h"
+
int ask_password_agent_open(void);
void ask_password_agent_close(void);
+
+int ask_password_agent_open_if_enabled(BusTransport transport, bool ask_password);