summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-11-11 03:28:10 +0000
committerGuy Harris <guy@alum.mit.edu>2011-11-11 03:28:10 +0000
commit845e927657d36dc8c6e5d8390e885e8aa1d13203 (patch)
tree178b16a6875cb23cf0dbc77b679e5eb5c2b58eed
parent968f782d235af23443d2df4522e40a93390b6276 (diff)
downloadwireshark-845e927657d36dc8c6e5d8390e885e8aa1d13203.tar.gz
If we're exporting routines from crc32.c, declare them in crc32.h and
list them in libwsutil.def. svn path=/trunk/; revision=39792
-rw-r--r--wsutil/crc32.h7
-rw-r--r--wsutil/libwsutil.def1
2 files changed, 8 insertions, 0 deletions
diff --git a/wsutil/crc32.h b/wsutil/crc32.h
index bb998d1c6e..d1ab2804eb 100644
--- a/wsutil/crc32.h
+++ b/wsutil/crc32.h
@@ -75,6 +75,13 @@ extern guint32 crc32_ccitt(const guint8 *buf, guint len);
@return The CRC32 CCITT checksum (using the given seed). */
extern guint32 crc32_ccitt_seed(const guint8 *buf, guint len, guint32 seed);
+/*
+ * I guess somebody's plugin must be using these; nothing in Wireshark
+ * does, but they're in crc32.c, and crc32_ccitt_table_lookup() is
+ * in the .def file....
+ */
+extern guint32 crc32c_table_lookup (guchar pos);
+extern guint32 crc32_ccitt_table_lookup (guchar pos);
int AirPDcapWepDecrypt(
const guchar *seed,
diff --git a/wsutil/libwsutil.def b/wsutil/libwsutil.def
index 540f44410b..4d811c098c 100644
--- a/wsutil/libwsutil.def
+++ b/wsutil/libwsutil.def
@@ -35,6 +35,7 @@ crc32_ccitt_seed
crc32_ccitt_table_lookup
crc32c_calculate
crc32c_calculate_no_swap
+crc32c_table_lookup
; crcdrm.c
crc_drm