diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-03-06 19:38:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-03-13 17:39:24 +0100 |
commit | e45c81b8bc04e8340f05589beb42ba5703a34fe1 (patch) | |
tree | 042d561a651f35d19644d0351ba92fa8801b4c3b /src/shared/bus-wait-for-jobs.h | |
parent | aee7082fbd4ac7b2a63e21a2906eb8f91aac779e (diff) | |
download | systemd-e45c81b8bc04e8340f05589beb42ba5703a34fe1.tar.gz |
shared: split out code to wait for jobs to complet into its own source file
It's complex enough and quite a few functions. Let's hence split this
out.
No code change, just some rearranging of source files.
Diffstat (limited to 'src/shared/bus-wait-for-jobs.h')
-rw-r--r-- | src/shared/bus-wait-for-jobs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/shared/bus-wait-for-jobs.h b/src/shared/bus-wait-for-jobs.h new file mode 100644 index 0000000000..8f21eb9cd6 --- /dev/null +++ b/src/shared/bus-wait-for-jobs.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + +#include "sd-bus.h" +#include "macro.h" + +typedef struct BusWaitForJobs BusWaitForJobs; + +int bus_wait_for_jobs_new(sd_bus *bus, BusWaitForJobs **ret); +void bus_wait_for_jobs_free(BusWaitForJobs *d); +int bus_wait_for_jobs_add(BusWaitForJobs *d, const char *path); +int bus_wait_for_jobs(BusWaitForJobs *d, bool quiet, const char* const* extra_args); +int bus_wait_for_jobs_one(BusWaitForJobs *d, const char *path, bool quiet); + +DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForJobs*, bus_wait_for_jobs_free); |