[pkg-wine-party] [wine] 68/164: wsnmp32: Add stub for SnmpOpen.

Michael Gilbert mgilbert at moszumanska.debian.org
Sun Oct 19 19:58:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

mgilbert pushed a commit to branch master
in repository wine.

commit 80c3a8f8bc58fff8725f52e23a4f9860af0f95e7
Author: Austin English <austinenglish at gmail.com>
Date:   Tue Oct 7 11:12:16 2014 -0500

    wsnmp32: Add stub for SnmpOpen.
---
 dlls/wsnmp32/wsnmp32.c    | 6 ++++++
 dlls/wsnmp32/wsnmp32.spec | 2 +-
 include/winsnmp.h         | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/wsnmp32/wsnmp32.c b/dlls/wsnmp32/wsnmp32.c
index 721842f..3dc54cb 100644
--- a/dlls/wsnmp32/wsnmp32.c
+++ b/dlls/wsnmp32/wsnmp32.c
@@ -45,6 +45,12 @@ SNMPAPI_STATUS WINAPI SnmpCleanup( void )
     return SNMPAPI_SUCCESS;
 }
 
+HSNMP_SESSION WINAPI SnmpOpen( HWND hwnd, UINT msg )
+{
+    FIXME( "%p %u\n", hwnd, msg );
+    return SNMPAPI_FAILURE;
+}
+
 SNMPAPI_STATUS WINAPI SnmpSetRetransmitMode( smiUINT32 retransmit_mode )
 {
     FIXME( "%u\n", retransmit_mode );
diff --git a/dlls/wsnmp32/wsnmp32.spec b/dlls/wsnmp32/wsnmp32.spec
index 197092a..61e48ba 100644
--- a/dlls/wsnmp32/wsnmp32.spec
+++ b/dlls/wsnmp32/wsnmp32.spec
@@ -11,7 +11,7 @@
 120 stub SnmpGetVendorInfo
 200 stdcall SnmpStartup(ptr ptr ptr ptr ptr)
 201 stdcall SnmpCleanup()
-202 stub SnmpOpen
+202 stdcall SnmpOpen(ptr long)
 203 stub SnmpClose
 204 stub SnmpSendMsg
 205 stub SnmpRecvMsg
diff --git a/include/winsnmp.h b/include/winsnmp.h
index 64765de..79a5e88 100644
--- a/include/winsnmp.h
+++ b/include/winsnmp.h
@@ -27,6 +27,7 @@ typedef int          smiINT, *smiLPINT;
 typedef smiINT       smiINT32, *smiLPINT32;
 typedef unsigned int smiUINT32, *smiLPUINT32;
 typedef smiUINT32    SNMPAPI_STATUS;
+typedef HANDLE       HSNMP_SESSION;
 
 #define SNMPAPI_NO_SUPPORT  0
 #define SNMPAPI_V1_SUPPORT  1
@@ -44,6 +45,7 @@ typedef smiUINT32    SNMPAPI_STATUS;
 #define SNMPAPI_SUCCESS 1
 
 SNMPAPI_STATUS WINAPI SnmpCleanup(void);
+HSNMP_SESSION  WINAPI SnmpOpen(HWND,UINT);
 SNMPAPI_STATUS WINAPI SnmpSetRetransmitMode(smiUINT32);
 SNMPAPI_STATUS WINAPI SnmpSetTranslateMode(smiUINT32);
 SNMPAPI_STATUS WINAPI SnmpStartup(smiLPUINT32,smiLPUINT32,smiLPUINT32,smiLPUINT32,smiLPUINT32);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git



More information about the pkg-wine-party mailing list