]> git.proxmox.com Git - systemd.git/blob - src/core/bus-common.h
Imported Upstream version 217
[systemd.git] / src / core / bus-common.h
1 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2
3 #pragma once
4
5 #include "macro.h"
6
7 /***
8 This file is part of systemd.
9
10 Copyright 2014 Daniel Mack
11
12 systemd is free software; you can redistribute it and/or modify it
13 under the terms of the GNU Lesser General Public License as published by
14 the Free Software Foundation; either version 2.1 of the License, or
15 (at your option) any later version.
16
17 systemd is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
21
22 You should have received a copy of the GNU Lesser General Public License
23 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 ***/
25
26 typedef enum BusPolicyAccess {
27 BUS_POLICY_ACCESS_SEE,
28 BUS_POLICY_ACCESS_TALK,
29 BUS_POLICY_ACCESS_OWN,
30 _BUS_POLICY_ACCESS_MAX,
31 _BUS_POLICY_ACCESS_INVALID = -1
32 } BusPolicyAccess;
33
34 const char* bus_policy_access_to_string(BusPolicyAccess i) _const_;
35 BusPolicyAccess bus_policy_access_from_string(const char *s) _pure_;