]> git.proxmox.com Git - systemd.git/blame - src/libsystemd/sd-bus/bus-common-errors.h
Imported Upstream version 219
[systemd.git] / src / libsystemd / sd-bus / bus-common-errors.h
CommitLineData
663996b3
MS
1/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2
3#pragma once
4
5/***
6 This file is part of systemd.
7
60f067b4 8 Copyright 2013 Lennart Poettering
663996b3
MS
9
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
14
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22***/
23
f47781d8
MP
24#include "sd-bus.h"
25#include "bus-error.h"
26
663996b3 27#define BUS_ERROR_NO_SUCH_UNIT "org.freedesktop.systemd1.NoSuchUnit"
60f067b4
JS
28#define BUS_ERROR_NO_UNIT_FOR_PID "org.freedesktop.systemd1.NoUnitForPID"
29#define BUS_ERROR_UNIT_EXISTS "org.freedesktop.systemd1.UnitExists"
30#define BUS_ERROR_LOAD_FAILED "org.freedesktop.systemd1.LoadFailed"
31#define BUS_ERROR_JOB_FAILED "org.freedesktop.systemd1.JobFailed"
663996b3
MS
32#define BUS_ERROR_NO_SUCH_JOB "org.freedesktop.systemd1.NoSuchJob"
33#define BUS_ERROR_NOT_SUBSCRIBED "org.freedesktop.systemd1.NotSubscribed"
60f067b4 34#define BUS_ERROR_ALREADY_SUBSCRIBED "org.freedesktop.systemd1.AlreadySubscribed"
663996b3 35#define BUS_ERROR_ONLY_BY_DEPENDENCY "org.freedesktop.systemd1.OnlyByDependency"
663996b3
MS
36#define BUS_ERROR_TRANSACTION_JOBS_CONFLICTING "org.freedesktop.systemd1.TransactionJobsConflicting"
37#define BUS_ERROR_TRANSACTION_ORDER_IS_CYCLIC "org.freedesktop.systemd1.TransactionOrderIsCyclic"
60f067b4
JS
38#define BUS_ERROR_TRANSACTION_IS_DESTRUCTIVE "org.freedesktop.systemd1.TransactionIsDestructive"
39#define BUS_ERROR_UNIT_MASKED "org.freedesktop.systemd1.UnitMasked"
40#define BUS_ERROR_JOB_TYPE_NOT_APPLICABLE "org.freedesktop.systemd1.JobTypeNotApplicable"
41#define BUS_ERROR_NO_ISOLATION "org.freedesktop.systemd1.NoIsolation"
663996b3 42#define BUS_ERROR_SHUTTING_DOWN "org.freedesktop.systemd1.ShuttingDown"
60f067b4
JS
43#define BUS_ERROR_SCOPE_NOT_RUNNING "org.freedesktop.systemd1.ScopeNotRunning"
44
45#define BUS_ERROR_NO_SUCH_MACHINE "org.freedesktop.machine1.NoSuchMachine"
e735f4d4 46#define BUS_ERROR_NO_SUCH_IMAGE "org.freedesktop.machine1.NoSuchImage"
60f067b4
JS
47#define BUS_ERROR_NO_MACHINE_FOR_PID "org.freedesktop.machine1.NoMachineForPID"
48#define BUS_ERROR_MACHINE_EXISTS "org.freedesktop.machine1.MachineExists"
49#define BUS_ERROR_NO_PRIVATE_NETWORKING "org.freedesktop.machine1.NoPrivateNetworking"
50
51#define BUS_ERROR_NO_SUCH_SESSION "org.freedesktop.login1.NoSuchSession"
52#define BUS_ERROR_NO_SESSION_FOR_PID "org.freedesktop.login1.NoSessionForPID"
53#define BUS_ERROR_NO_SUCH_USER "org.freedesktop.login1.NoSuchUser"
54#define BUS_ERROR_NO_USER_FOR_PID "org.freedesktop.login1.NoUserForPID"
55#define BUS_ERROR_NO_SUCH_SEAT "org.freedesktop.login1.NoSuchSeat"
56#define BUS_ERROR_SESSION_NOT_ON_SEAT "org.freedesktop.login1.SessionNotOnSeat"
57#define BUS_ERROR_NOT_IN_CONTROL "org.freedesktop.login1.NotInControl"
58#define BUS_ERROR_DEVICE_IS_TAKEN "org.freedesktop.login1.DeviceIsTaken"
59#define BUS_ERROR_DEVICE_NOT_TAKEN "org.freedesktop.login1.DeviceNotTaken"
60#define BUS_ERROR_OPERATION_IN_PROGRESS "org.freedesktop.login1.OperationInProgress"
61#define BUS_ERROR_SLEEP_VERB_NOT_SUPPORTED "org.freedesktop.login1.SleepVerbNotSupported"
62
63#define BUS_ERROR_AUTOMATIC_TIME_SYNC_ENABLED "org.freedesktop.timedate1.AutomaticTimeSyncEnabled"
64
663996b3 65#define BUS_ERROR_NO_SUCH_PROCESS "org.freedesktop.systemd1.NoSuchProcess"
5eef597e
MP
66
67#define BUS_ERROR_NO_NAME_SERVERS "org.freedesktop.resolve1.NoNameServers"
68#define BUS_ERROR_INVALID_REPLY "org.freedesktop.resolve1.InvalidReply"
69#define BUS_ERROR_NO_SUCH_RR "org.freedesktop.resolve1.NoSuchRR"
70#define BUS_ERROR_NO_RESOURCES "org.freedesktop.resolve1.NoResources"
71#define BUS_ERROR_CNAME_LOOP "org.freedesktop.resolve1.CNameLoop"
72#define BUS_ERROR_ABORTED "org.freedesktop.resolve1.Aborted"
73#define _BUS_ERROR_DNS "org.freedesktop.resolve1.DnsError."
f47781d8 74
e735f4d4
MP
75#define BUS_ERROR_NO_SUCH_TRANSFER "org.freedesktop.import1.NoSuchTransfer"
76#define BUS_ERROR_TRANSFER_IN_PROGRESS "org.freedesktop.import1.TransferInProgress"
77
f47781d8 78BUS_ERROR_MAP_ELF_USE(bus_common_errors);