]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/bus-wait-for-jobs.h
Merge pull request #30513 from rpigott/resolved-ede
[thirdparty/systemd.git] / src / shared / bus-wait-for-jobs.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "sd-bus.h"
5
6 #include "macro.h"
7
8 typedef struct BusWaitForJobs BusWaitForJobs;
9
10 typedef enum WaitJobsFlags {
11 BUS_WAIT_JOBS_LOG_ERROR = 1 << 0,
12 BUS_WAIT_JOBS_LOG_SUCCESS = 1 << 1,
13 } WaitJobsFlags;
14
15 BusWaitForJobs* bus_wait_for_jobs_free(BusWaitForJobs *d);
16 DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForJobs*, bus_wait_for_jobs_free);
17
18 int bus_wait_for_jobs_new(sd_bus *bus, BusWaitForJobs **ret);
19 int bus_wait_for_jobs_add(BusWaitForJobs *d, const char *path);
20 int bus_wait_for_jobs(BusWaitForJobs *d, WaitJobsFlags flags, const char* const* extra_args);
21 int bus_wait_for_jobs_one(BusWaitForJobs *d, const char *path, WaitJobsFlags flags, const char* const* extra_args);