]>
Commit | Line | Data |
---|---|---|
5699a168 LB |
1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | #pragma once | |
3 | ||
4 | #include "execute.h" | |
5 | ||
6 | /* These functions serialize/deserialize for invocation purposes (i.e.: serialized object is passed to a | |
7 | * child process) rather than to save state across reload/reexec. */ | |
8 | ||
9 | int exec_serialize_invocation(FILE *f, | |
10 | FDSet *fds, | |
b806a5d3 | 11 | const ExecContext *ctx, |
beb4ae87 | 12 | const ExecCommand *cmd, |
73c12fac | 13 | const ExecParameters *p, |
56df7a46 LB |
14 | const ExecRuntime *rt, |
15 | const CGroupContext *cg); | |
5699a168 LB |
16 | |
17 | int exec_deserialize_invocation(FILE *f, | |
18 | FDSet *fds, | |
b806a5d3 | 19 | ExecContext *ctx, |
beb4ae87 | 20 | ExecCommand *cmd, |
73c12fac | 21 | ExecParameters *p, |
56df7a46 LB |
22 | ExecRuntime *rt, |
23 | CGroupContext *cg); |