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

#include <stdio.h>

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

int unit_serialize(Unit *u, FILE *f, FDSet *fds, bool serialize_jobs);
int unit_deserialize(Unit *u, FILE *f, FDSet *fds);
int unit_deserialize_skip(FILE *f);

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