diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-02-28 14:09:46 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-02-28 14:09:46 +0000 |
commit | 45c2884f1bbd9c06f7ba3091d968fcb6649a5f56 (patch) | |
tree | bb66eea36a288f1ab5e33468ee9bf2989339b2aa /wsutil/crc32.h | |
parent | 018ba4ea6584f63aa5c4b741c2e6f6fedc609ad2 (diff) | |
download | wireshark-45c2884f1bbd9c06f7ba3091d968fcb6649a5f56.tar.gz |
Export libwsutil symbols using WS_DLL_PUBLIC define
This change replaces *.def and *.sym file usage following the
guideline at http://gcc.gnu.org/wiki/Visibility
svn path=/trunk/; revision=47938
Diffstat (limited to 'wsutil/crc32.h')
-rw-r--r-- | wsutil/crc32.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/wsutil/crc32.h b/wsutil/crc32.h index 214f73489f..72d3b07b59 100644 --- a/wsutil/crc32.h +++ b/wsutil/crc32.h @@ -25,6 +25,8 @@ #ifndef __CRC32_H__ #define __CRC32_H__ +#include "ws_symbol_export.h" + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ @@ -44,10 +46,12 @@ extern "C" { /** Lookup the crc value in the crc32_ccitt_table @param pos Position in the table. */ +WS_DLL_PUBLIC extern guint32 crc32_ccitt_table_lookup (guchar pos); /** Lookup the crc value in the crc32c_table @param pos Position in the table. */ +WS_DLL_PUBLIC extern guint32 crc32c_table_lookup (guchar pos); /** Compute CRC32C checksum of a buffer of data. @@ -55,6 +59,7 @@ extern guint32 crc32c_table_lookup (guchar pos); @param len The number of bytes to include in the computation. @param crc The preload value for the CRC32C computation. @return The CRC32C checksum. */ +WS_DLL_PUBLIC extern guint32 crc32c_calculate(const void *buf, int len, guint32 crc); /** Compute CRC32C checksum of a buffer of data without swapping seed crc @@ -63,12 +68,14 @@ extern guint32 crc32c_calculate(const void *buf, int len, guint32 crc); @param len The number of bytes to include in the computation. @param crc The preload value for the CRC32C computation. @return The CRC32C checksum. */ +WS_DLL_PUBLIC extern guint32 crc32c_calculate_no_swap(const void *buf, int len, guint32 crc); /** Compute CRC32 CCITT checksum of a buffer of data. @param buf The buffer containing the data. @param len The number of bytes to include in the computation. @return The CRC32 CCITT checksum. */ +WS_DLL_PUBLIC extern guint32 crc32_ccitt(const guint8 *buf, guint len); /** Compute CRC32 CCITT checksum of a buffer of data. If computing the @@ -78,6 +85,7 @@ extern guint32 crc32_ccitt(const guint8 *buf, guint len); @param len The number of bytes to include in the computation. @param seed The seed to use. @return The CRC32 CCITT checksum (using the given seed). */ +WS_DLL_PUBLIC extern guint32 crc32_ccitt_seed(const guint8 *buf, guint len, guint32 seed); /** Compute MPEG-2 CRC32 checksum of a buffer of data. @@ -85,9 +93,10 @@ extern guint32 crc32_ccitt_seed(const guint8 *buf, guint len, guint32 seed); @param len The number of bytes to include in the computation. @param seed The seed to use. @return The CRC32 MPEG-2 checksum (using the given seed). */ +WS_DLL_PUBLIC extern guint32 crc32_mpeg2_seed(const guint8 *buf, guint len, guint32 seed); -int AirPDcapWepDecrypt( +WS_DLL_PUBLIC int AirPDcapWepDecrypt( const guchar *seed, const size_t seed_len, guchar *cypher_text, |