summaryrefslogtreecommitdiff
path: root/utils/MTP/MTP_DLL/mtp_wrapper.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-13 08:12:41 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-13 08:12:41 +0000
commitbc18818547da718e46efb107c3369add018aaa1d (patch)
tree64df93f065f3c847610f5cbdd472218497d54299 /utils/MTP/MTP_DLL/mtp_wrapper.cpp
parentb22e604a067790114ee32cbc49e7407182ba9863 (diff)
downloadrockbox-bc18818547da718e46efb107c3369add018aaa1d.tar.gz
rockbox-bc18818547da718e46efb107c3369add018aaa1d.zip
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
Diffstat (limited to 'utils/MTP/MTP_DLL/mtp_wrapper.cpp')
-rw-r--r--utils/MTP/MTP_DLL/mtp_wrapper.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/MTP/MTP_DLL/mtp_wrapper.cpp b/utils/MTP/MTP_DLL/mtp_wrapper.cpp
index f444a59631..f3a05f3c0c 100644
--- a/utils/MTP/MTP_DLL/mtp_wrapper.cpp
+++ b/utils/MTP/MTP_DLL/mtp_wrapper.cpp
@@ -31,8 +31,6 @@
31 */ 31 */
32 32
33 33
34#include "stdafx.h"
35
36#include <windows.h> 34#include <windows.h>
37#include "mswmdm_i.c" 35#include "mswmdm_i.c"
38#include "mswmdm.h" 36#include "mswmdm.h"
@@ -120,7 +118,7 @@ static int mtp_close(struct mtp_if* mtp)
120 return 0; 118 return 0;
121} 119}
122 120
123__declspec(dllexport) int mtp_description(wchar_t* name, wchar_t* manufacturer, DWORD* version) 121MTP_DLL_API int mtp_description(wchar_t* name, wchar_t* manufacturer, DWORD* version)
124{ 122{
125 HRESULT hr; 123 HRESULT hr;
126 int num = 0; 124 int num = 0;
@@ -177,7 +175,7 @@ __declspec(dllexport) int mtp_description(wchar_t* name, wchar_t* manufacturer,
177 return (num > 0) ? num : -1; 175 return (num > 0) ? num : -1;
178} 176}
179 177
180__declspec(dllexport) int mtp_sendnk(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max)) 178MTP_DLL_API int mtp_sendnk(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max))
181{ 179{
182 HRESULT hr; 180 HRESULT hr;
183 bool return_value = false; 181 bool return_value = false;
@@ -281,4 +279,4 @@ __declspec(dllexport) int mtp_sendnk(LPWSTR file, int filesize, void (*callback)
281 return return_value ? 1 : 0; 279 return return_value ? 1 : 0;
282} 280}
283 281
284} \ No newline at end of file 282}