| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
|
| 6 |
typedef struct BusWaitForJobs BusWaitForJobs; |
| 7 |
|
| 8 |
typedef enum WaitJobsFlags { |
| 9 |
BUS_WAIT_JOBS_LOG_ERROR = 1 << 0, |
| 10 |
BUS_WAIT_JOBS_LOG_SUCCESS = 1 << 1, |
| 11 |
} WaitJobsFlags; |
| 12 |
|
| 13 |
BusWaitForJobs* bus_wait_for_jobs_free(BusWaitForJobs *d); |
| 14 |
DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForJobs*, bus_wait_for_jobs_free); |
| 15 |
|
| 16 |
int bus_wait_for_jobs_new(sd_bus *bus, BusWaitForJobs **ret); |
| 17 |
int bus_wait_for_jobs_add(BusWaitForJobs *d, const char *path); |
| 18 |
int bus_wait_for_jobs(BusWaitForJobs *d, WaitJobsFlags flags, const char* const* extra_args); |
| 19 |
int bus_wait_for_jobs_one(BusWaitForJobs *d, const char *path, WaitJobsFlags flags, const char* const* extra_args); |