From 4c692b9b9f1641a50c743203146db982993ee3fb Mon Sep 17 00:00:00 2001 From: Patrik Stridvall Date: Mon, 29 Apr 2002 18:43:35 +0000 Subject: [PATCH] Stub implementation of SNMPAPI.DLL. --- configure | 3 ++- configure.ac | 1 + dlls/Makefile.in | 8 ++++++ dlls/snmpapi/.cvsignore | 2 ++ dlls/snmpapi/Makefile.in | 15 ++++++++++++ dlls/snmpapi/main.c | 51 +++++++++++++++++++++++++++++++++++++++ dlls/snmpapi/snmpapi.spec | 47 ++++++++++++++++++++++++++++++++++++ 7 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 dlls/snmpapi/.cvsignore create mode 100644 dlls/snmpapi/Makefile.in create mode 100644 dlls/snmpapi/main.c create mode 100644 dlls/snmpapi/snmpapi.spec diff --git a/configure b/configure index f6f7405ec79..f1c9499823e 100755 --- a/configure +++ b/configure @@ -12398,7 +12398,7 @@ MAKE_DLL_RULES=dlls/Makedll.rules MAKE_PROG_RULES=programs/Makeprog.rules -ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile controls/Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msg711/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile files/Makefile graphics/Makefile graphics/x11drv/Makefile if1632/Makefile include/Makefile library/Makefile libtest/Makefile loader/Makefile loader/ne/Makefile memory/Makefile misc/Makefile miscemu/Makefile msdos/Makefile objects/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile relay32/Makefile scheduler/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile win32/Makefile windows/Makefile windows/x11drv/Makefile" +ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile controls/Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msg711/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile files/Makefile graphics/Makefile graphics/x11drv/Makefile if1632/Makefile include/Makefile library/Makefile libtest/Makefile loader/Makefile loader/ne/Makefile memory/Makefile misc/Makefile miscemu/Makefile msdos/Makefile objects/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile relay32/Makefile scheduler/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile win32/Makefile windows/Makefile windows/x11drv/Makefile" cat >confcache <<\_ACEOF @@ -12938,6 +12938,7 @@ do "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; + "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; diff --git a/configure.ac b/configure.ac index ed9417a387e..9350ee851cd 100644 --- a/configure.ac +++ b/configure.ac @@ -1305,6 +1305,7 @@ dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile +dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile diff --git a/dlls/Makefile.in b/dlls/Makefile.in index 49ef3e64b2f..1bdb3108957 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -69,6 +69,7 @@ SUBDIRS = \ shell32 \ shfolder \ shlwapi \ + snmpapi \ sti \ tapi32 \ ttydrv \ @@ -194,6 +195,7 @@ all: \ shell32.dll$(DLLEXT) \ shfolder.dll$(DLLEXT) \ shlwapi.dll$(DLLEXT) \ + snmpapi.dll$(DLLEXT) \ sound.dll$(DLLEXT) \ sti.dll$(DLLEXT) \ storage.dll$(DLLEXT) \ @@ -434,6 +436,9 @@ shfolder.dll$(DLLEXT): shfolder/shfolder.dll$(DLLEXT) shlwapi.dll$(DLLEXT): shlwapi/shlwapi.dll$(DLLEXT) $(RM) $@ && $(LN_S) shlwapi/shlwapi.dll$(DLLEXT) $@ +snmpapi.dll$(DLLEXT): snmpapi/snmpapi.dll$(DLLEXT) + $(RM) $@ && $(LN_S) snmpapi/snmpapi.dll$(DLLEXT) $@ + sti.dll$(DLLEXT): sti/sti.dll$(DLLEXT) $(RM) $@ && $(LN_S) sti/sti.dll$(DLLEXT) $@ @@ -708,6 +713,9 @@ shlwapi/shlwapi.dll$(DLLEXT): dummy advapi32.dll$(DLLEXT) user32.dll$(DLLEXT) \ gdi32.dll$(DLLEXT) kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT) @cd shlwapi && $(MAKE) shlwapi.dll$(DLLEXT) +snmpapi/snmpapi.dll$(DLLEXT): dummy ntdll.dll$(DLLEXT) + @cd snmpapi && $(MAKE) snmpapi.dll$(DLLEXT) + sti/sti.dll$(DLLEXT): dummy ntdll.dll$(DLLEXT) @cd sti && $(MAKE) sti.dll$(DLLEXT) diff --git a/dlls/snmpapi/.cvsignore b/dlls/snmpapi/.cvsignore new file mode 100644 index 00000000000..779a18113e4 --- /dev/null +++ b/dlls/snmpapi/.cvsignore @@ -0,0 +1,2 @@ +Makefile +snmpapi.spec.c diff --git a/dlls/snmpapi/Makefile.in b/dlls/snmpapi/Makefile.in new file mode 100644 index 00000000000..4c6dee25c7d --- /dev/null +++ b/dlls/snmpapi/Makefile.in @@ -0,0 +1,15 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = snmpapi.dll + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/snmpapi/main.c b/dlls/snmpapi/main.c new file mode 100644 index 00000000000..63be398d87e --- /dev/null +++ b/dlls/snmpapi/main.c @@ -0,0 +1,51 @@ +/* + * Stub implementation of SNMPAPI.DLL + * + * Copyright 2002 Patrik Stridvall + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "config.h" + +#include "windef.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(snmpapi); + +/*********************************************************************** + * SNMPAPI_DllMain + */ +BOOL WINAPI SNMPAPI_DllMain( + HINSTANCE hInstDLL, + DWORD fdwReason, + LPVOID lpvReserved) +{ + TRACE("(%08x,%08lx,%p)\n", hInstDLL, fdwReason, lpvReserved); + + switch(fdwReason) { + case DLL_PROCESS_ATTACH: + break; + case DLL_PROCESS_DETACH: + break; + case DLL_THREAD_ATTACH: + break; + case DLL_THREAD_DETACH: + break; + } + + return TRUE; +} diff --git a/dlls/snmpapi/snmpapi.spec b/dlls/snmpapi/snmpapi.spec new file mode 100644 index 00000000000..7803ec8f235 --- /dev/null +++ b/dlls/snmpapi/snmpapi.spec @@ -0,0 +1,47 @@ +name snmpapi +type win32 +init SNMPAPI_DllMain + +import ntdll.dll + +debug_channels (snmpapi) + +@ stub SnmpSvcAddrIsIpx +@ stub SnmpSvcAddrToSocket +@ stub SnmpSvcBufRevAndCpy +@ stub SnmpSvcBufRevInPlace +@ stub SnmpSvcDecodeMessage +@ stub SnmpSvcEncodeMessage +@ stub SnmpSvcGenerateAuthFailTrap +@ stub SnmpSvcGenerateColdStartTrap +@ stub SnmpSvcGenerateLinkDownTrap +@ stub SnmpSvcGenerateLinkUpTrap +@ stub SnmpSvcGenerateTrap +@ stub SnmpSvcGenerateWarmStartTrap +@ stub SnmpSvcGetEnterpriseOID +@ stub SnmpSvcGetUptime +@ stub SnmpSvcInitUptime +@ stub SnmpSvcReleaseMessage +@ stub SnmpSvcReportEvent +@ stub SnmpSvcSetLogLevel +@ stub SnmpSvcSetLogType +@ stub SnmpUtilAnsiToUnicode +@ stub SnmpUtilDbgPrint +@ stub SnmpUtilIdsToA +@ stub SnmpUtilMemAlloc +@ stub SnmpUtilMemFree +@ stub SnmpUtilMemReAlloc +@ stub SnmpUtilOidAppend +@ stub SnmpUtilOidCmp +@ stub SnmpUtilOidCpy +@ stub SnmpUtilOidFree +@ stub SnmpUtilOidNCmp +@ stub SnmpUtilOidToA +@ stub SnmpUtilPrintAsnAny +@ stub SnmpUtilPrintOid +@ stub SnmpUtilStrlenW +@ stub SnmpUtilUnicodeToAnsi +@ stub SnmpUtilVarBindCpy +@ stub SnmpUtilVarBindFree +@ stub SnmpUtilVarBindListCpy +@ stub SnmpUtilVarBindListFree