Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d36e7c08
Commit
d36e7c08
authored
Sep 17, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsnmp32: Add stub implementations for a couple of functions.
parent
6d02c19f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
156 additions
and
7 deletions
+156
-7
configure
configure
+2
-1
configure.ac
configure.ac
+2
-1
Makefile.in
dlls/wsnmp32/Makefile.in
+2
-1
Makefile.in
dlls/wsnmp32/tests/Makefile.in
+7
-0
wsnmp.c
dlls/wsnmp32/tests/wsnmp.c
+51
-0
wsnmp32.c
dlls/wsnmp32/wsnmp32.c
+32
-0
wsnmp32.spec
dlls/wsnmp32/wsnmp32.spec
+4
-4
Makefile.in
include/Makefile.in
+1
-0
winsnmp.h
include/winsnmp.h
+55
-0
No files found.
configure
View file @
d36e7c08
...
...
@@ -16493,7 +16493,8 @@ 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 wsnmp32 enable_wsnmp32 implib
wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
wine_fn_config_dll wsock32 enable_wsock32 implib
wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
wine_fn_config_dll wuapi enable_wuapi
...
...
configure.ac
View file @
d36e7c08
...
...
@@ -3167,7 +3167,8 @@ 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(wsnmp32,,[implib])
WINE_CONFIG_TEST(dlls/wsnmp32/tests)
WINE_CONFIG_DLL(wsock32,,[implib])
WINE_CONFIG_DLL(wtsapi32,,[implib])
WINE_CONFIG_DLL(wuapi)
...
...
dlls/wsnmp32/Makefile.in
View file @
d36e7c08
MODULE
=
wsnmp32.dll
MODULE
=
wsnmp32.dll
IMPORTLIB
=
wsnmp32
C_SRCS
=
wsnmp32.c
...
...
dlls/wsnmp32/tests/Makefile.in
0 → 100644
View file @
d36e7c08
TESTDLL
=
wsnmp32.dll
IMPORTS
=
wsnmp32
C_SRCS
=
\
wsnmp.c
@MAKE_TEST_RULES@
dlls/wsnmp32/tests/wsnmp.c
0 → 100644
View file @
d36e7c08
/*
* Copyright 2013 Hans Leidekker for CodeWeavers
*
* 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 <stdlib.h>
#include <windef.h>
#include <winbase.h>
#include <winsnmp.h>
#include "wine/test.h"
static
void
test_SnmpStartup
(
void
)
{
SNMPAPI_STATUS
status
;
smiUINT32
major
,
minor
,
level
,
translate_mode
,
retransmit_mode
;
status
=
SnmpStartup
(
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
status
==
SNMPAPI_SUCCESS
,
"got %u
\n
"
,
status
);
status
=
SnmpCleanup
();
ok
(
status
==
SNMPAPI_SUCCESS
,
"got %u
\n
"
,
status
);
major
=
minor
=
level
=
translate_mode
=
retransmit_mode
=
0xdeadbeef
;
status
=
SnmpStartup
(
&
major
,
&
minor
,
&
level
,
&
translate_mode
,
&
retransmit_mode
);
ok
(
status
==
SNMPAPI_SUCCESS
,
"got %u
\n
"
,
status
);
trace
(
"major %u minor %u level %u translate_mode %u retransmit_mode %u
\n
"
,
major
,
minor
,
level
,
translate_mode
,
retransmit_mode
);
status
=
SnmpCleanup
();
ok
(
status
==
SNMPAPI_SUCCESS
,
"got %u
\n
"
,
status
);
}
START_TEST
(
wsnmp
)
{
test_SnmpStartup
();
}
dlls/wsnmp32/wsnmp32.c
View file @
d36e7c08
...
...
@@ -19,6 +19,7 @@
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winsnmp.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wsnmp32
);
...
...
@@ -37,3 +38,34 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
}
return
TRUE
;
}
SNMPAPI_STATUS
WINAPI
SnmpCleanup
(
void
)
{
FIXME
(
"
\n
"
);
return
SNMPAPI_SUCCESS
;
}
SNMPAPI_STATUS
WINAPI
SnmpSetRetransmitMode
(
smiUINT32
retransmit_mode
)
{
FIXME
(
"%u
\n
"
,
retransmit_mode
);
return
SNMPAPI_SUCCESS
;
}
SNMPAPI_STATUS
WINAPI
SnmpSetTranslateMode
(
smiUINT32
translate_mode
)
{
FIXME
(
"%u
\n
"
,
translate_mode
);
return
SNMPAPI_SUCCESS
;
}
SNMPAPI_STATUS
WINAPI
SnmpStartup
(
smiLPUINT32
major
,
smiLPUINT32
minor
,
smiLPUINT32
level
,
smiLPUINT32
translate_mode
,
smiLPUINT32
retransmit_mode
)
{
FIXME
(
"%p, %p, %p, %p, %p
\n
"
,
major
,
minor
,
level
,
translate_mode
,
retransmit_mode
);
if
(
major
)
*
major
=
2
;
if
(
minor
)
*
minor
=
0
;
if
(
level
)
*
level
=
SNMPAPI_V2_SUPPORT
;
if
(
translate_mode
)
*
translate_mode
=
SNMPAPI_UNTRANSLATED_V1
;
if
(
retransmit_mode
)
*
retransmit_mode
=
SNMPAPI_ON
;
return
SNMPAPI_SUCCESS
;
}
dlls/wsnmp32/wsnmp32.spec
View file @
d36e7c08
100 stub SnmpGetTranslateMode
101 st
ub SnmpSetTranslateMode
101 st
dcall SnmpSetTranslateMode(long)
102 stub SnmpGetRetransmitMode
103 st
ub SnmpSetRetransmitMode
103 st
dcall SnmpSetRetransmitMode(long)
104 stub SnmpGetTimeout
105 stub SnmpSetTimeout
106 stub SnmpSetRetry
...
...
@@ -9,8 +9,8 @@
108 stub _SnmpConveyAgentAddress@4
109 stub _SnmpSetAgentAddress@4
120 stub SnmpGetVendorInfo
200 st
ub SnmpStartup
201 st
ub SnmpCleanup
200 st
dcall SnmpStartup(ptr ptr ptr ptr ptr)
201 st
dcall SnmpCleanup()
202 stub SnmpOpen
203 stub SnmpClose
204 stub SnmpSendMsg
...
...
include/Makefile.in
View file @
d36e7c08
...
...
@@ -589,6 +589,7 @@ SRCDIR_INCLUDES = \
winsafer.h
\
winscard.h
\
winsmcrd.h
\
winsnmp.h
\
winsock.h
\
winsock2.h
\
winspool.h
\
...
...
include/winsnmp.h
0 → 100644
View file @
d36e7c08
/*
* Copyright 2013 Hans Leidekker for CodeWeavers.
*
* 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
*/
#ifndef __WINE_WINSNMP_H
#define __WINE_WINSNMP_H
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
int
smiINT
,
*
smiLPINT
;
typedef
smiINT
smiINT32
,
*
smiLPINT32
;
typedef
unsigned
int
smiUINT32
,
*
smiLPUINT32
;
typedef
smiUINT32
SNMPAPI_STATUS
;
#define SNMPAPI_NO_SUPPORT 0
#define SNMPAPI_V1_SUPPORT 1
#define SNMPAPI_V2_SUPPORT 2
#define SNMPAPI_M2M_SUPPORT 3
#define SNMPAPI_TRANSLATED 0
#define SNMPAPI_UNTRANSLATED_V1 1
#define SNMPAPI_UNTRANSLATED_V2 2
#define SNMPAPI_OFF 0
#define SNMPAPI_ON 1
#define SNMPAPI_FAILURE 0
#define SNMPAPI_SUCCESS 1
SNMPAPI_STATUS
WINAPI
SnmpCleanup
(
void
);
SNMPAPI_STATUS
WINAPI
SnmpSetRetransmitMode
(
smiUINT32
);
SNMPAPI_STATUS
WINAPI
SnmpSetTranslateMode
(
smiUINT32
);
SNMPAPI_STATUS
WINAPI
SnmpStartup
(
smiLPUINT32
,
smiLPUINT32
,
smiLPUINT32
,
smiLPUINT32
,
smiLPUINT32
);
#ifdef __cplusplus
}
#endif
#endif
/* __WINE_WINSNMP_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment