e45c81b8bc
It's complex enough and quite a few functions. Let's hence split this out. No code change, just some rearranging of source files.
16 lines
548 B
C
16 lines
548 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
#include "sd-bus.h"
|
|
#include "macro.h"
|
|
|
|
typedef struct BusWaitForJobs BusWaitForJobs;
|
|
|
|
int bus_wait_for_jobs_new(sd_bus *bus, BusWaitForJobs **ret);
|
|
void bus_wait_for_jobs_free(BusWaitForJobs *d);
|
|
int bus_wait_for_jobs_add(BusWaitForJobs *d, const char *path);
|
|
int bus_wait_for_jobs(BusWaitForJobs *d, bool quiet, const char* const* extra_args);
|
|
int bus_wait_for_jobs_one(BusWaitForJobs *d, const char *path, bool quiet);
|
|
|
|
DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForJobs*, bus_wait_for_jobs_free);
|