1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 Copyright 2012 Lennart Poettering
10 int polkit_agent_open(void);
11 void polkit_agent_close(void);
13 static inline int polkit_agent_open_if_enabled(
14 BusTransport transport,
17 /* Open the polkit agent as a child process if necessary */
19 if (transport != BUS_TRANSPORT_LOCAL)
25 return polkit_agent_open();