1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h

Stuff in src/shared/ should not use stuff from src/libsystemd/ really.
This commit is contained in:
Lennart Poettering 2014-12-10 19:00:46 +01:00
parent 85bd849f09
commit 96aad8d15a
27 changed files with 29 additions and 29 deletions

View File

@ -757,8 +757,6 @@ libsystemd_shared_la_SOURCES = \
src/shared/sparse-endian.h \
src/shared/refcnt.h \
src/shared/udev-util.h \
src/shared/bus-errors.h \
src/shared/bus-errors.c \
src/shared/device-nodes.c \
src/shared/device-nodes.h \
src/shared/util.c \
@ -2646,6 +2644,8 @@ libsystemd_internal_la_SOURCES = \
src/libsystemd/sd-bus/bus-control.h \
src/libsystemd/sd-bus/bus-error.c \
src/libsystemd/sd-bus/bus-error.h \
src/libsystemd/sd-bus/bus-common-errors.h \
src/libsystemd/sd-bus/bus-common-errors.c \
src/libsystemd/sd-bus/bus-internal.c \
src/libsystemd/sd-bus/bus-internal.h \
src/libsystemd/sd-bus/bus-socket.c \

View File

@ -39,7 +39,7 @@
#include "dbus-unit.h"
#include "dbus-snapshot.h"
#include "dbus-execute.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
static int property_get_version(
sd_bus *bus,

View File

@ -28,7 +28,7 @@
#include "dbus.h"
#include "bus-util.h"
#include "bus-internal.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
static int bus_scope_abandon(sd_bus *bus, sd_bus_message *message, void *userdata, sd_bus_error *error) {
Scope *s = userdata;

View File

@ -26,7 +26,7 @@
#include "strv.h"
#include "path-util.h"
#include "fileio.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "dbus.h"
#include "dbus-manager.h"
#include "dbus-unit.h"

View File

@ -39,7 +39,7 @@
#include "dbus.h"
#include "bus-util.h"
#include "bus-error.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "strxcpyx.h"
#include "bus-internal.h"
#include "selinux-access.h"

View File

@ -69,7 +69,7 @@
#include "audit-fd.h"
#include "boot-timestamps.h"
#include "env-util.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "bus-error.h"
#include "bus-util.h"
#include "dbus.h"

View File

@ -41,7 +41,7 @@
#include "unit-name.h"
#include "dbus-mount.h"
#include "special.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "exit-status.h"
#include "def.h"

View File

@ -25,7 +25,7 @@
#include "snapshot.h"
#include "unit-name.h"
#include "dbus-snapshot.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
static const UnitActiveState state_translation_table[_SNAPSHOT_STATE_MAX] = {
[SNAPSHOT_DEAD] = UNIT_INACTIVE,

View File

@ -35,7 +35,7 @@
#include "unit-name.h"
#include "dbus-swap.h"
#include "special.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "exit-status.h"
#include "def.h"
#include "path-util.h"

View File

@ -22,7 +22,7 @@
#include <unistd.h>
#include <fcntl.h>
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "bus-util.h"
#include "bus-error.h"
#include "transaction.h"

View File

@ -47,7 +47,7 @@
#include "mkdir.h"
#include "label.h"
#include "fileio-label.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "dbus.h"
#include "execute.h"
#include "virt.h"

View File

@ -35,7 +35,7 @@
#include "special.h"
#include "bus-util.h"
#include "bus-error.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "fileio.h"
#include "udev-util.h"
#include "path-util.h"

View File

@ -23,9 +23,9 @@
#include "sd-bus.h"
#include "bus-error.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map shared_errors[] = {
BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map bus_common_errors[] = {
SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_UNIT, ENOENT),
SD_BUS_ERROR_MAP(BUS_ERROR_NO_UNIT_FOR_PID, ESRCH),
SD_BUS_ERROR_MAP(BUS_ERROR_UNIT_EXISTS, EEXIST),

View File

@ -71,4 +71,4 @@
#define BUS_ERROR_ABORTED "org.freedesktop.resolve1.Aborted"
#define _BUS_ERROR_DNS "org.freedesktop.resolve1.DnsError."
BUS_ERROR_MAP_ELF_USE(shared_errors);
BUS_ERROR_MAP_ELF_USE(bus_common_errors);

View File

@ -32,7 +32,7 @@
#include "sd-bus.h"
#include "bus-error.h"
BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map standard_errors[] = {
BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map bus_standard_errors[] = {
SD_BUS_ERROR_MAP("org.freedesktop.DBus.Error.Failed", EACCES),
SD_BUS_ERROR_MAP("org.freedesktop.DBus.Error.NoMemory", ENOMEM),
SD_BUS_ERROR_MAP("org.freedesktop.DBus.Error.ServiceUnknown", EHOSTUNREACH),

View File

@ -62,4 +62,4 @@ int bus_error_set_errnofv(sd_bus_error *e, int error, const char *format, va_lis
* maps using the macsd-ros. */
#define BUS_ERROR_MAP_END_MARKER -'x'
BUS_ERROR_MAP_ELF_USE(standard_errors);
BUS_ERROR_MAP_ELF_USE(bus_standard_errors);

View File

@ -23,7 +23,7 @@
#include "bus-error.h"
#include "bus-util.h"
#include "errno-list.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
static void test_error(void) {
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL, second = SD_BUS_ERROR_NULL;

View File

@ -41,7 +41,7 @@
#include "bus-util.h"
#include "bus-error.h"
#include "logind.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "udev-util.h"
static int property_get_idle_hint(

View File

@ -26,7 +26,7 @@
#include "util.h"
#include "bus-util.h"
#include "strv.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "bus-label.h"
#include "logind.h"
#include "logind-seat.h"

View File

@ -26,7 +26,7 @@
#include "util.h"
#include "strv.h"
#include "bus-util.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "bus-label.h"
#include "logind.h"

View File

@ -27,7 +27,7 @@
#include "bus-util.h"
#include "bus-label.h"
#include "strv.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "copy.h"
#include "fileio.h"
#include "in-addr-util.h"

View File

@ -36,7 +36,7 @@
#include "utf8.h"
#include "unit-name.h"
#include "bus-util.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "time-util.h"
#include "cgroup-util.h"
#include "machined.h"

View File

@ -33,7 +33,7 @@
#include "sd-bus.h"
#include "bus-util.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "macro.h"
#include "nss-util.h"
#include "util.h"

View File

@ -26,7 +26,7 @@
#include "sd-bus.h"
#include "bus-util.h"
#include "bus-error.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "in-addr-util.h"
#include "af-list.h"
#include "build.h"

View File

@ -19,7 +19,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "bus-util.h"
#include "resolved-dns-domain.h"

View File

@ -72,7 +72,7 @@
#include "bus-util.h"
#include "bus-message.h"
#include "bus-error.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "mkdir.h"
static char **arg_types = NULL;

View File

@ -39,7 +39,7 @@
#include "label.h"
#include "bus-util.h"
#include "bus-error.h"
#include "bus-errors.h"
#include "bus-common-errors.h"
#include "event-util.h"
#define NULL_ADJTIME_UTC "0.0 0 0\n0\nUTC\n"