Lines Matching refs:ref
3188 Unit* unit_ref_set(UnitRef *ref, Unit *u) {
3189 assert(ref);
3192 if (ref->unit)
3193 unit_ref_unset(ref);
3195 ref->unit = u;
3196 LIST_PREPEND(refs, u->refs, ref);
3200 void unit_ref_unset(UnitRef *ref) {
3201 assert(ref);
3203 if (!ref->unit)
3206 LIST_REMOVE(refs, ref->unit->refs, ref);
3207 ref->unit = NULL;