return cgroup_bonding_find_list(u->meta.cgroup_bondings, u->meta.manager->cgroup_controller);
}
+int unit_load_related_unit(Unit *u, const char *type, Unit **_found) {
+ char *t;
+ int r;
+
+ assert(u);
+ assert(type);
+ assert(_found);
+
+ if (!(t = unit_name_change_suffix(unit_id(u), type)))
+ return -ENOMEM;
+
+ assert(!unit_has_name(u, t));
+
+ r = manager_load_unit(u->meta.manager, t, _found);
+ free(t);
+
+ if (r >= 0)
+ assert(*_found != u);
+
+ return r;
+}
+
static const char* const unit_type_table[_UNIT_TYPE_MAX] = {
[UNIT_SERVICE] = "service",
[UNIT_TIMER] = "timer",
char *unit_dbus_path(Unit *u);
+int unit_load_related_unit(Unit *u, const char *type, Unit **_found);
+
const char *unit_type_to_string(UnitType i);
UnitType unit_type_from_string(const char *s);