core: add serialization/deserialization for ExecContext

This commit is contained in:
Luca Boccassi
2023-10-12 14:56:23 +01:00
parent c3166b25e2
commit 5699a1689b
6 changed files with 2169 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include "execute.h"
/* These functions serialize/deserialize for invocation purposes (i.e.: serialized object is passed to a
* child process) rather than to save state across reload/reexec. */
int exec_serialize_invocation(FILE *f,
FDSet *fds,
const ExecContext *ctx);
int exec_deserialize_invocation(FILE *f,
FDSet *fds,
ExecContext *ctx);