Module: wine Branch: master Commit: 0c1bd482b58b0e86c7f7b5a6b67e2f9788291075 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0c1bd482b58b0e86c7f7b5a6b6...
Author: Stefan Leichter Stefan.Leichter@camline.com Date: Tue May 1 08:07:57 2012 +0200
wsnmp32: New stub dll.
---
configure | 1 + configure.ac | 1 + dlls/wsnmp32/Makefile.in | 5 ++++ dlls/wsnmp32/wsnmp32.c | 41 ++++++++++++++++++++++++++++++++++++++ dlls/wsnmp32/wsnmp32.spec | 48 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 96 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index 5b8c648..fbe00c6 100755 --- a/configure +++ b/configure @@ -15462,6 +15462,7 @@ wine_fn_config_dll ws2_32 enable_ws2_32 implib wine_fn_config_test dlls/ws2_32/tests ws2_32_test wine_fn_config_dll wshom.ocx enable_wshom_ocx wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test +wine_fn_config_dll wsnmp32 enable_wsnmp32 wine_fn_config_dll wsock32 enable_wsock32 implib wine_fn_config_dll wtsapi32 enable_wtsapi32 implib wine_fn_config_dll wuapi enable_wuapi diff --git a/configure.ac b/configure.ac index 18da8c5..849508c 100644 --- a/configure.ac +++ b/configure.ac @@ -2950,6 +2950,7 @@ WINE_CONFIG_DLL(ws2_32,,[implib]) WINE_CONFIG_TEST(dlls/ws2_32/tests) WINE_CONFIG_DLL(wshom.ocx) WINE_CONFIG_TEST(dlls/wshom.ocx/tests) +WINE_CONFIG_DLL(wsnmp32) WINE_CONFIG_DLL(wsock32,,[implib]) WINE_CONFIG_DLL(wtsapi32,,[implib]) WINE_CONFIG_DLL(wuapi) diff --git a/dlls/wsnmp32/Makefile.in b/dlls/wsnmp32/Makefile.in new file mode 100644 index 0000000..0fe0da2 --- /dev/null +++ b/dlls/wsnmp32/Makefile.in @@ -0,0 +1,5 @@ +MODULE = wsnmp32.dll + +C_SRCS = wsnmp32.c + +@MAKE_DLL_RULES@ diff --git a/dlls/wsnmp32/wsnmp32.c b/dlls/wsnmp32/wsnmp32.c new file mode 100644 index 0000000..6ace895 --- /dev/null +++ b/dlls/wsnmp32/wsnmp32.c @@ -0,0 +1,41 @@ +/* + * Copyright 2012 Stefan Leichter + * + * 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 <stdarg.h> +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(wsnmp32); + +BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) +{ + TRACE("%p, %u, %p\n", hinst, reason, reserved); + + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls( hinst ); + break; + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} diff --git a/dlls/wsnmp32/wsnmp32.spec b/dlls/wsnmp32/wsnmp32.spec new file mode 100644 index 0000000..fedf760 --- /dev/null +++ b/dlls/wsnmp32/wsnmp32.spec @@ -0,0 +1,48 @@ +100 stub SnmpGetTranslateMode +101 stub SnmpSetTranslateMode +102 stub SnmpGetRetransmitMode +103 stub SnmpSetRetransmitMode +104 stub SnmpGetTimeout +105 stub SnmpSetTimeout +106 stub SnmpSetRetry +107 stub SnmpGetRetry +108 stub _SnmpConveyAgentAddress@4 +109 stub _SnmpSetAgentAddress@4 +120 stub SnmpGetVendorInfo +200 stub SnmpStartup +201 stub SnmpCleanup +202 stub SnmpOpen +203 stub SnmpClose +204 stub SnmpSendMsg +205 stub SnmpRecvMsg +206 stub SnmpRegister +220 stub SnmpCreateSession +221 stub SnmpListen +222 stub SnmpCancelMsg +300 stub SnmpStrToEntity +301 stub SnmpEntityToStr +302 stub SnmpFreeEntity +320 stub SnmpSetPort +400 stub SnmpStrToContext +401 stub SnmpContextToStr +402 stub SnmpFreeContext +500 stub SnmpCreatePdu +501 stub SnmpGetPduData +502 stub SnmpSetPduData +503 stub SnmpDuplicatePdu +504 stub SnmpFreePdu +600 stub SnmpCreateVbl +601 stub SnmpDuplicateVbl +602 stub SnmpFreeVbl +603 stub SnmpCountVbl +604 stub SnmpGetVb +605 stub SnmpSetVb +606 stub SnmpDeleteVb +900 stub SnmpFreeDescriptor +901 stub SnmpEncodeMsg +902 stub SnmpDecodeMsg +903 stub SnmpStrToOid +904 stub SnmpOidToStr +905 stub SnmpOidCopy +906 stub SnmpOidCompare +999 stub SnmpGetLastError