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 int bus_wait_for_jobs_new(sd_bus *bus, BusWaitForJobs **ret);
11 BusWaitForJobs* bus_wait_for_jobs_free(BusWaitForJobs *d);
12 int bus_wait_for_jobs_add(BusWaitForJobs *d, const char *path);
13 int bus_wait_for_jobs(BusWaitForJobs *d, bool quiet, const char* const* extra_args);
14 int bus_wait_for_jobs_one(BusWaitForJobs *d, const char *path, bool quiet, const char* const* extra_args);
15 
16 DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForJobs*, bus_wait_for_jobs_free);
17