Debian Codegraph @

src/helper/polkit.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright 2022 Juan Palacios <[email protected]>
3
4 #pragma once
5
6 #include <string>
7
8 namespace Polkit {
9
10 enum class AuthResult {
11 Yes,
12 No,
13 Error,
14 };
15
16 struct BusNameSubject
17 {
18 std::string bus;
19 };
20
21 /// Checks whether a subject, identified by its bus name, is authorized to
22 /// perform an action. This operation requires user interaction.
23 AuthResult checkAuthorizationSync(std::string const &actionId,
24 BusNameSubject const &busNameSubject);
25
26 } // namespace Polkit