Line data Source code
1 : /* SPDX-License-Identifier: LGPL-2.1+ */ 2 : #pragma once 3 : 4 : #include "sd-bus.h" 5 : #include "macro.h" 6 : 7 : typedef struct BusWaitForJobs BusWaitForJobs; 8 : 9 : int bus_wait_for_jobs_new(sd_bus *bus, BusWaitForJobs **ret); 10 : void bus_wait_for_jobs_free(BusWaitForJobs *d); 11 : int bus_wait_for_jobs_add(BusWaitForJobs *d, const char *path); 12 : int bus_wait_for_jobs(BusWaitForJobs *d, bool quiet, const char* const* extra_args); 13 : int bus_wait_for_jobs_one(BusWaitForJobs *d, const char *path, bool quiet); 14 : 15 0 : DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForJobs*, bus_wait_for_jobs_free);