A Thursday 20 November 2008 01:46:05, Michael Snyder escreveu:
Seems like a couple of people had some doubts about this
particular part of the implementation.
Does anyone have any alternative suggestions?
Sounds like a deficiency of the target interface, as most target_ops
functions don't take a "this" pointer and do the "beneath"
lookup themselves.
Would doing something like this work here? :
for (t = current_target.beneath; t != NULL; t = t->beneath)
if (t->to_xfer_partial != NULL)
{
t->to_xfer_partial (...);
return;
}
etc., that is don't stop looking at the immediate
target beneath, but look until you find one that suits instead.
I'd prefer that the core side isn't special cased for
the record target. If need be, we can add, change or adapt
the target interfaces.