=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: wpcap: Implement pcap_setnonblock.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 20 14:30:34 CDT 2014
Module: wine
Branch: master
Commit: f0f57c22bf7c9b25b708b51d423a9a19db2b35c4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f0f57c22bf7c9b25b708b51d423a9a19db2b35c4
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Aug 19 00:02:03 2014 +0200
wpcap: Implement pcap_setnonblock.
---
dlls/wpcap/wpcap.c | 6 ++++++
dlls/wpcap/wpcap.spec | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c
index b1a2149..16b92f4 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -256,6 +256,12 @@ int CDECL wine_pcap_setfilter(pcap_t *p, struct bpf_program *fp)
return pcap_setfilter(p, fp);
}
+int CDECL wine_pcap_setnonblock(pcap_t *p, int nonblock, char *errbuf)
+{
+ TRACE("(%p %i %p)\n", p, nonblock, errbuf);
+ return pcap_setnonblock(p, nonblock, errbuf);
+}
+
int CDECL wine_pcap_snapshot(pcap_t *p)
{
TRACE("(%p)\n", p);
diff --git a/dlls/wpcap/wpcap.spec b/dlls/wpcap/wpcap.spec
index 13a8f7f..33cc9ef 100644
--- a/dlls/wpcap/wpcap.spec
+++ b/dlls/wpcap/wpcap.spec
@@ -68,7 +68,7 @@
@ cdecl pcap_setfilter(ptr ptr) wine_pcap_setfilter
@ stub pcap_setmintocopy
@ stub pcap_setmode
-@ stub pcap_setnonblock
+@ cdecl pcap_setnonblock(ptr long ptr) wine_pcap_setnonblock
@ stub pcap_setsampling
@ stub pcap_setuserbuffer
@ cdecl pcap_snapshot(ptr) wine_pcap_snapshot
More information about the wine-cvs
mailing list