HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

src/core/execute-serialize.h

Git blob: 17b0159d1efeef71afb2cdb7896e75d3377d170b

Lines 1–24 of 24

/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
 
#include "core-forward.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,
        const ExecCommand *cmd,
        const ExecParameters *p,
        const ExecRuntime *rt,
        const CGroupContext *cg);
 
int exec_deserialize_invocation(FILE *f,
        FDSet *fds,
        ExecContext *ctx,
        ExecCommand *cmd,
        ExecParameters *p,
        ExecRuntime *rt,
        CGroupContext *cg);