]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/bus-wait-for-jobs.h
main-func: make sure we destruct memory and stuff last
[thirdparty/systemd.git] / src / shared / bus-wait-for-jobs.h
CommitLineData
e45c81b8
LP
1/* SPDX-License-Identifier: LGPL-2.1+ */
2#pragma once
3
4#include "sd-bus.h"
5#include "macro.h"
6
7typedef struct BusWaitForJobs BusWaitForJobs;
8
9int bus_wait_for_jobs_new(sd_bus *bus, BusWaitForJobs **ret);
10void bus_wait_for_jobs_free(BusWaitForJobs *d);
11int bus_wait_for_jobs_add(BusWaitForJobs *d, const char *path);
12int bus_wait_for_jobs(BusWaitForJobs *d, bool quiet, const char* const* extra_args);
13int bus_wait_for_jobs_one(BusWaitForJobs *d, const char *path, bool quiet);
14
15DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForJobs*, bus_wait_for_jobs_free);