dbus-scope.c revision 556089dc57b10a12a03edd3d3e90ca17398ad206
b34561d2c3d92fac37dbced05ba6a8738e3d20e9Lubos Kosco/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
#include "unit.h"
#include "scope.h"
#include "dbus-unit.h"
#include "dbus-cgroup.h"
#include "dbus-kill.h"
#include "dbus-scope.h"
#include "bus-util.h"
SD_BUS_PROPERTY("TimeoutStopUSec", "t", bus_property_get_usec, offsetof(Scope, timeout_stop_usec), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(Scope, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
const char* const bus_scope_changing_properties[] = {
static int bus_scope_set_transient_property(
Scope *s,
const char *name,
assert(s);
return -EINVAL;
if (r < 0 && r != -EEXIST)
return -EINVAL;
unit_write_drop_in_format(UNIT(s), mode, name, "[Scope]\nTimeoutStopSec=%lluus\n", (unsigned long long) s->timeout_stop_usec);
Unit *u,
const char *name,
assert(s);
assert(u);