summaryrefslogtreecommitdiffstats
path: root/src/core/unit-serialize.h
blob: ab8a8e3be904138bbc03a599ce28341649a595bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

#include <stdio.h>

#include "unit.h"
#include "fdset.h"

/* These functions serialize state for our own usage, i.e.: across a reload/reexec, rather than for being
 * passed to a child process. */

int unit_serialize_state(Unit *u, FILE *f, FDSet *fds, bool serialize_jobs);
int unit_deserialize_state(Unit *u, FILE *f, FDSet *fds);
int unit_deserialize_state_skip(FILE *f);

void unit_dump(Unit *u, FILE *f, const char *prefix);