For a user who just wants to use rdiff(1) to perform the three phases of the delta-transfer algorithm, the man page is pretty sparse. The patch adds a complete example and also adds a reference to the rsync technical report in both the rdiff(1) and librsync(3) man pages. It is based on the following explanation I gave on the rsync list...
This patch declares rs_compare_targets as cdecl and removes the explicit callback typecast.
The typecast was not needed in unix (afaik) and didn't work in windows if cdecl was not specified and isn't needed if cdecl is specified
It adds a sources file suitable for MSVC build system, and a .def file to help build the dll.
The patch needs some review but allows me to build a DLL on windows...