Major W32 beastpatcher rework (FS#10220).
commit2681bdd7baa2fc7b0d366a93aaf0e84ce5114b0b
authorbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Mon, 8 Jun 2009 18:04:10 +0000 (8 18:04 +0000)
committerbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Mon, 8 Jun 2009 18:04:10 +0000 (8 18:04 +0000)
treec8568e4f398f5a1e2fcfc1c937dbbbc18d0f1aeb
parenta5932b51f5b90b71cd1321917b613e4b561c3d1a
Major W32 beastpatcher rework (FS#10220).

Update beastpatcher to scan for the device separately, rework MTP_DLL and modify to allow building with VS2005.
- include pstdint.h when building with VS2005 as VS doesn't have inttypes.h
- don't use bool in the DLL as VS doesn't support type bool in C.
- rearrange DLL files to avoid filename ambiguities with sendfirm.
- include MTP_DLL.h instead of duplicating prototypes. Adjust header for easy inclusion.
- make MTP_DLL project file also copy the resulting dll to MTP folder for convenience.
- extend MTP_DLL API for separate device scanning. Note that this (intentionally) breaks compatibility of the dll.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21221 a1c6a512-1295-4272-9138-f99709370657
14 files changed:
utils/MTP/MTP_DLL.dll
utils/MTP/MTP_DLL/MTP_DLL.h
utils/MTP/MTP_DLL/MTP_DLL.vcproj
utils/MTP/MTP_DLL/mtp_wrapper.cpp [new file with mode: 0644]
utils/MTP/MTP_DLL/progresshelper.cpp [new file with mode: 0644]
utils/MTP/MTP_DLL/progresshelper.h [new file with mode: 0644]
utils/MTP/MTP_DLL/sendfirm_win.cpp [deleted file]
utils/MTP/beastpatcher/README.pstdint [new file with mode: 0644]
utils/MTP/beastpatcher/beastpatcher.c
utils/MTP/beastpatcher/mtp_common.h
utils/MTP/beastpatcher/mtp_win32.c
utils/MTP/beastpatcher/pstdint.h [new file with mode: 0644]
utils/MTP/beastpatcher/vs2005/beastpatcher.vcproj [copied from utils/MTP/MTP_DLL/MTP_DLL.vcproj with 63% similarity]
utils/MTP/sendfirm_win.c