Add ftd2xx.dll as wrapper around native ftd2xx library

Uwe Bonnes bon at hertz.ikp.physik.tu-darmstadt.de
Tue Nov 17 09:28:35 CST 2009


---
 dlls/ftd2xx/Makefile.in   |   14 ++++++++
 dlls/ftd2xx/ftd2xx.spec   |   81 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/ftd2xx/ftd2xx_main.c |   50 +++++++++++++++++++++++++++
 3 files changed, 145 insertions(+), 0 deletions(-)
 create mode 100644 dlls/ftd2xx/Makefile.in
 create mode 100644 dlls/ftd2xx/ftd2xx.spec
 create mode 100644 dlls/ftd2xx/ftd2xx_main.c

diff --git a/dlls/ftd2xx/Makefile.in b/dlls/ftd2xx/Makefile.in
new file mode 100644
index 0000000..81d381f
--- /dev/null
+++ b/dlls/ftd2xx/Makefile.in
@@ -0,0 +1,14 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = ftd2xx.dll
+IMPORTLIB = ftd2xx
+IMPORTS   = kernel32
+
+C_SRCS = \
+	ftd2xx_main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/ftd2xx/ftd2xx.spec b/dlls/ftd2xx/ftd2xx.spec
new file mode 100644
index 0000000..2aaeecc
--- /dev/null
+++ b/dlls/ftd2xx/ftd2xx.spec
@@ -0,0 +1,81 @@
+# Generated from FTD2XX.dll by winedump
+
+@ stub FT_Open
+@ stub FT_Close
+@ stub FT_Read
+@ stub FT_Write
+@ stub FT_IoCtl
+@ stub FT_ResetDevice
+@ stub FT_SetBaudRate
+@ stub FT_SetDataCharacteristics
+@ stub FT_SetFlowControl
+@ stub FT_SetDtr
+@ stub FT_ClrDtr
+@ stub FT_SetRts
+@ stub FT_ClrRts
+@ stub FT_GetModemStatus
+@ stub FT_SetChars
+@ stub FT_Purge
+@ stub FT_SetTimeouts
+@ stub FT_GetQueueStatus
+@ stub FT_SetEventNotification
+@ stub FT_GetEventStatus
+@ stub FT_GetStatus
+@ stub FT_SetBreakOn
+@ stub FT_SetBreakOff
+@ stub FT_SetWaitMask
+@ stub FT_WaitOnMask
+@ stub FT_SetDivisor
+@ stub FT_OpenEx
+@ stub FT_ListDevices
+@ stub FT_SetLatencyTimer
+@ stub FT_GetLatencyTimer
+@ stub FT_SetBitMode
+@ stub FT_GetBitMode
+@ stub FT_SetUSBParameters
+@ stub FT_EraseEE
+@ stub FT_ReadEE
+@ stub FT_WriteEE
+@ stub FT_EE_Program
+@ stub FT_EE_Read
+@ stub FT_EE_UARead
+@ stub FT_EE_UASize
+@ stub FT_EE_UAWrite
+@ stub FT_W32_CreateFile
+@ stub FT_W32_CloseHandle
+@ stub FT_W32_ReadFile
+@ stub FT_W32_WriteFile
+@ stub FT_W32_GetOverlappedResult
+@ stub FT_W32_ClearCommBreak
+@ stub FT_W32_ClearCommError
+@ stub FT_W32_EscapeCommFunction
+@ stub FT_W32_GetCommModemStatus
+@ stub FT_W32_GetCommState
+@ stub FT_W32_GetCommTimeouts
+@ stub FT_W32_GetLastError
+@ stub FT_W32_PurgeComm
+@ stub FT_W32_SetCommBreak
+@ stub FT_W32_SetCommMask
+@ stub FT_W32_SetCommState
+@ stub FT_W32_SetCommTimeouts
+@ stub FT_W32_SetupComm
+@ stub FT_W32_WaitCommEvent
+@ stub FT_GetDeviceInfo
+@ stub FT_W32_CancelIo
+@ stub FT_StopInTask
+@ stub FT_RestartInTask
+@ stub FT_SetResetPipeRetryCount
+@ stub FT_ResetPort
+@ stub FT_EE_ProgramEx
+@ stub FT_EE_ReadEx
+@ stub FT_CyclePort
+@ stub FT_CreateDeviceInfoList
+@ stub FT_GetDeviceInfoList
+@ stub FT_GetDeviceInfoDetail
+@ stub FT_SetDeadmanTimeout
+@ stub FT_GetDriverVersion
+@ stub FT_GetLibraryVersion
+@ stub FT_W32_GetCommMask
+@ stub FT_Rescan
+@ stub FT_Reload
+@ stub FT_GetComPortNumber
diff --git a/dlls/ftd2xx/ftd2xx_main.c b/dlls/ftd2xx/ftd2xx_main.c
new file mode 100644
index 0000000..004cecf
--- /dev/null
+++ b/dlls/ftd2xx/ftd2xx_main.c
@@ -0,0 +1,50 @@
+/*
+ * FTD2XX.dll
+ *
+ * Forward calls to ftd2xx.dll to libftd2xx.so
+ *
+ * Copyright 2009 Uwe Bonnes
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *
+ */
+
+#include "config.h"
+#include "wine/port.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/library.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(ftd2xx);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+  TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+  
+  switch (fdwReason)
+    {
+    case DLL_PROCESS_ATTACH:
+      DisableThreadLibraryCalls(hinstDLL);
+      break;
+    case DLL_PROCESS_DETACH:
+      break;
+    }
+  
+  return TRUE;
+}
-- 
1.6.0.2




More information about the wine-patches mailing list