1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dominik Riebeling 2009-06-08 18:04:10 +00:00
parent 5575f425d6
commit eebde2a367
14 changed files with 1524 additions and 300 deletions

View file

@ -1,10 +1,21 @@
#ifndef MTP_DLL_H
#define MTP_DLL_H
#ifdef MTP_DLL_EXPORTS
#define MTP_DLL_API __declspec(dllexport)
#else
#define MTP_DLL_API __declspec(dllimport)
#endif
#ifdef __cplusplus
extern "C"
{
__declspec(dllexport) bool send_fw(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max));
#endif
MTP_DLL_API int mtp_sendnk(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max));
MTP_DLL_API int mtp_description(wchar_t* name, wchar_t* manufacturer, DWORD* version);
#ifdef __cplusplus
}
#endif
#endif