2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2013-06-17 21:33:26 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-05-15 20:17:34 +02:00
|
|
|
#include "unit.h"
|
|
|
|
|
2013-06-17 21:33:26 +02:00
|
|
|
typedef struct Slice Slice;
|
|
|
|
|
|
|
|
struct Slice {
|
|
|
|
Unit meta;
|
|
|
|
|
|
|
|
SliceState state, deserialized_state;
|
2013-06-27 04:14:27 +02:00
|
|
|
|
|
|
|
CGroupContext cgroup_context;
|
2013-06-17 21:33:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const UnitVTable slice_vtable;
|
2018-05-15 20:17:34 +02:00
|
|
|
|
|
|
|
DEFINE_CAST(SLICE, Slice);
|