src/core/unit-serialize.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "core-forward.h" |
| 5 | |
| 6 | /* These functions serialize state for our own usage, i.e.: across a reload/reexec, rather than for being |
| 7 | * passed to a child process. */ |
| 8 | |
| 9 | int unit_serialize_state(Unit *u, FILE *f, FDSet *fds, bool switching_root); |
| 10 | int unit_deserialize_state(Unit *u, FILE *f, FDSet *fds); |
| 11 | int unit_deserialize_state_skip(FILE *f); |
| 12 | |
| 13 | void unit_dump(Unit *u, FILE *f, const char *prefix); |