summaryrefslogtreecommitdiffstats
path: root/src/shared/bus-wait-for-units.h
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-04-16 08:39:36 +0200
committerMike Yuan <me@yhndnzj.com>2024-04-19 04:08:36 +0200
commit4b8fdb4681cb8ee650abc5cadf189da7d0b4fa2c (patch)
treeb65eaadd4be7942108734b57ee62469ff51513c2 /src/shared/bus-wait-for-units.h
parentsystemctl-start-unit: Subscribe() is unnecessary if we RefUnit explicitly (diff)
downloadsystemd-4b8fdb4681cb8ee650abc5cadf189da7d0b4fa2c.tar.xz
systemd-4b8fdb4681cb8ee650abc5cadf189da7d0b4fa2c.zip
bus-wait-for-units: drop ready_callback
This is never used, and given that bus_wait_for_units_run returns BusWaitForUnits.state it's not really useful.
Diffstat (limited to '')
-rw-r--r--src/shared/bus-wait-for-units.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/shared/bus-wait-for-units.h b/src/shared/bus-wait-for-units.h
index c87eabcbbc..d2a2756dc7 100644
--- a/src/shared/bus-wait-for-units.h
+++ b/src/shared/bus-wait-for-units.h
@@ -21,7 +21,6 @@ typedef enum BusWaitForUnitsFlags {
BUS_WAIT_REFFED = 1 << 3, /* The unit is already reffed with RefUnit() */
} BusWaitForUnitsFlags;
-typedef void (*bus_wait_for_units_ready_callback)(BusWaitForUnits *d, BusWaitForUnitsState state, void *userdata);
typedef void (*bus_wait_for_units_unit_callback)(BusWaitForUnits *d, const char *unit_path, bool good, void *userdata);
int bus_wait_for_units_new(sd_bus *bus, BusWaitForUnits **ret);
@@ -30,6 +29,5 @@ BusWaitForUnits* bus_wait_for_units_free(BusWaitForUnits *d);
DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForUnits*, bus_wait_for_units_free);
BusWaitForUnitsState bus_wait_for_units_state(BusWaitForUnits *d);
-void bus_wait_for_units_set_ready_callback(BusWaitForUnits *d, bus_wait_for_units_ready_callback callback, void *userdata);
int bus_wait_for_units_add_unit(BusWaitForUnits *d, const char *unit, BusWaitForUnitsFlags flags, bus_wait_for_units_unit_callback callback, void *userdata);
int bus_wait_for_units_run(BusWaitForUnits *d);