summaryrefslogtreecommitdiffstats
path: root/src/core/execute.h
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-27 14:32:58 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-27 14:32:58 +0200
commite52a696a9af9e46e6e2be799a344bd9fb34dd3f4 (patch)
treec36619c797cb8e8f89ced5bc5cc1a112a516ed2e /src/core/execute.h
parentexecute: Rename ExecRuntime to ExecSharedRuntime (diff)
downloadsystemd-e52a696a9af9e46e6e2be799a344bd9fb34dd3f4.tar.xz
systemd-e52a696a9af9e46e6e2be799a344bd9fb34dd3f4.zip
execute: Do not pass destroy as a boolean argument to unref()
Let's mimick what we do for DynamicUser and have two separate functions for unreffing and destroying a ExecSharedRuntime object.
Diffstat (limited to 'src/core/execute.h')
-rw-r--r--src/core/execute.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/execute.h b/src/core/execute.h
index 95d5de8fb8..10cd2c6046 100644
--- a/src/core/execute.h
+++ b/src/core/execute.h
@@ -484,7 +484,8 @@ void exec_status_dump(const ExecStatus *s, FILE *f, const char *prefix);
void exec_status_reset(ExecStatus *s);
int exec_shared_runtime_acquire(Manager *m, const ExecContext *c, const char *name, bool create, ExecSharedRuntime **ret);
-ExecSharedRuntime *exec_shared_runtime_unref(ExecSharedRuntime *r, bool destroy);
+ExecSharedRuntime *exec_shared_runtime_destroy(ExecSharedRuntime *r);
+ExecSharedRuntime *exec_shared_runtime_unref(ExecSharedRuntime *r);
int exec_shared_runtime_serialize(const Manager *m, FILE *f, FDSet *fds);
int exec_shared_runtime_deserialize_compat(Unit *u, const char *key, const char *value, FDSet *fds);