mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Some more MTP_DLL cleanup.
- don't use precompiled headers. - prepare for direct incorporation of the library. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21269 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b22e604a06
commit
bc18818547
7 changed files with 11 additions and 62 deletions
|
@ -31,8 +31,6 @@
|
|||
*/
|
||||
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include <windows.h>
|
||||
#include "mswmdm_i.c"
|
||||
#include "mswmdm.h"
|
||||
|
@ -120,7 +118,7 @@ static int mtp_close(struct mtp_if* mtp)
|
|||
return 0;
|
||||
}
|
||||
|
||||
__declspec(dllexport) int mtp_description(wchar_t* name, wchar_t* manufacturer, DWORD* version)
|
||||
MTP_DLL_API int mtp_description(wchar_t* name, wchar_t* manufacturer, DWORD* version)
|
||||
{
|
||||
HRESULT hr;
|
||||
int num = 0;
|
||||
|
@ -177,7 +175,7 @@ __declspec(dllexport) int mtp_description(wchar_t* name, wchar_t* manufacturer,
|
|||
return (num > 0) ? num : -1;
|
||||
}
|
||||
|
||||
__declspec(dllexport) int mtp_sendnk(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max))
|
||||
MTP_DLL_API int mtp_sendnk(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max))
|
||||
{
|
||||
HRESULT hr;
|
||||
bool return_value = false;
|
||||
|
@ -281,4 +279,4 @@ __declspec(dllexport) int mtp_sendnk(LPWSTR file, int filesize, void (*callback)
|
|||
return return_value ? 1 : 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue