January 06, 2006
David

Did you get anywhere with this yet? No pressure, as I'm a little busy myself at the mo, just interested. :-)

Cheers

Matthew


January 07, 2006
Matthew wrote:
> David
> 
> Did you get anywhere with this yet? No pressure, as I'm a little busy myself
> at the mo, just interested. :-)
> 
> Cheers
> 
> Matthew
> 
> 

I did get it to compile with a few changes, but I have not done much more (I'm busy too :).

As for using a delegate callback... As long as it is only called from within the Search_Feedback, something like this should work:

---
typedef int delegate(char, size_t, void *, recls_uint32_t)
	hrecls_progress_dg_t;

recls_rc_t Recls_SearchFeedback_D(etc..., hrecls_progress_dg_t dg)
{
  return Recls_SearchFeedback(etc..., & xlate, & dg);
}

private extern (C) recls_rc_t xlate(char a, size_t b, recls_process_fn_param_t *pdg, void * c, recls_uint32_t d)
{
   return ( * cast(hrecls_progress_dg_t) pdg )(a, b, c, d);
}
---


David