=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: wpcap: Implement pcap_list_datalinks.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 19 16:00:08 CDT 2014


Module: wine
Branch: master
Commit: d6c4ed0878d497756d75c9b8c4151ade7039f1b3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d6c4ed0878d497756d75c9b8c4151ade7039f1b3

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Aug 18 23:56:15 2014 +0200

wpcap: Implement pcap_list_datalinks.

---

 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 19f79e3..5e94c08 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -134,6 +134,12 @@ const char* CDECL wine_pcap_lib_version(void)
     return ret;
 }
 
+int CDECL wine_pcap_list_datalinks(pcap_t *p, int **dlt_buffer)
+{
+    TRACE("(%p %p)\n", p, dlt_buffer);
+    return pcap_list_datalinks(p, dlt_buffer);
+}
+
 char* CDECL wine_pcap_lookupdev(char *errbuf)
 {
     TRACE("(%p)\n", errbuf);
diff --git a/dlls/wpcap/wpcap.spec b/dlls/wpcap/wpcap.spec
index de90658..2fc8b4d 100644
--- a/dlls/wpcap/wpcap.spec
+++ b/dlls/wpcap/wpcap.spec
@@ -34,7 +34,7 @@
 @ stub pcap_getnonblock
 @ stub pcap_is_swapped
 @ cdecl pcap_lib_version() wine_pcap_lib_version
-@ stub pcap_list_datalinks
+@ cdecl pcap_list_datalinks(ptr ptr) wine_pcap_list_datalinks
 @ stub pcap_live_dump
 @ stub pcap_live_dump_ended
 @ cdecl pcap_lookupdev(ptr) wine_pcap_lookupdev




More information about the wine-cvs mailing list