aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/crc16.h
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-02-28 14:09:46 +0000
committerBalint Reczey <balint@balintreczey.hu>2013-02-28 14:09:46 +0000
commit45c2884f1bbd9c06f7ba3091d968fcb6649a5f56 (patch)
treebb66eea36a288f1ab5e33468ee9bf2989339b2aa /wsutil/crc16.h
parent018ba4ea6584f63aa5c4b741c2e6f6fedc609ad2 (diff)
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/crc16.h')
-rw-r--r--wsutil/crc16.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/wsutil/crc16.h b/wsutil/crc16.h
index f72a252fa2..09dde4b893 100644
--- a/wsutil/crc16.h
+++ b/wsutil/crc16.h
@@ -27,6 +27,8 @@
#ifndef __CRC16_H__
#define __CRC16_H__
+#include "ws_symbol_export.h"
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -44,12 +46,14 @@ extern "C" {
@param buf The buffer containing the data.
@param len The number of bytes to include in the computation.
@return The CRC16 CCITT checksum. */
+WS_DLL_PUBLIC
extern guint16 crc16_ccitt(const guint8 *buf, guint len);
/** Compute CRC16 X.25 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 CRC16 X.25 CCITT checksum. */
+WS_DLL_PUBLIC
extern guint16 crc16_x25_ccitt(const guint8 *buf, guint len);
/** Compute CRC16 CCITT checksum of a buffer of data. If computing the
@@ -59,6 +63,7 @@ extern guint16 crc16_x25_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 CRC16 CCITT checksum (using the given seed). */
+WS_DLL_PUBLIC
extern guint16 crc16_ccitt_seed(const guint8 *buf, guint len, guint16 seed);
/** Calculates a CRC16 checksum for the given buffer with the polynom
@@ -68,6 +73,7 @@ extern guint16 crc16_ccitt_seed(const guint8 *buf, guint len, guint16 seed);
* @param seed The seed to use.
* @return the CRC16 checksum for the buffer
*/
+WS_DLL_PUBLIC
extern guint16 crc16_0x5935(const guint8 *buf, guint32 len, guint16 seed);
#ifdef __cplusplus