diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-30 15:34:50 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-30 15:37:02 +0100 |
commit | a7893c6b28772edbc7e1fea3c209caa54d465648 (patch) | |
tree | ae9e44874c63592f44321b9fc9ed07b2c808ef58 /src/libsystemd-bus/bus-container.h | |
parent | 0f8bd8debb0ff7f5bff7738841931f6c41e40bc1 (diff) |
bus: add API call to create bus connection to the system bus of local containers
Also, add support for this to machinectl, so that we can enumerate the
machines that run inside a container. We must go deeper!
Diffstat (limited to 'src/libsystemd-bus/bus-container.h')
-rw-r--r-- | src/libsystemd-bus/bus-container.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-container.h b/src/libsystemd-bus/bus-container.h new file mode 100644 index 0000000000..65f43ab4fd --- /dev/null +++ b/src/libsystemd-bus/bus-container.h @@ -0,0 +1,26 @@ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ + +#pragma once + +/*** + This file is part of systemd. + + Copyright 2013 Lennart Poettering + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with systemd; If not, see <http://www.gnu.org/licenses/>. +***/ + +#include "sd-bus.h" + +int bus_container_connect(sd_bus *b); |