summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocketprotocol.h
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2013-10-12 21:01:17 +0200
committerKurt Pattyn <pattyn.kurt@gmail.com>2013-10-13 12:28:00 +0200
commit62826288d5b1e02556c5815ec4d153eb7396f5e4 (patch)
tree619d6c04225aeb38e59ce9fbc92069f86dc9d1b2 /src/websockets/qwebsocketprotocol.h
parent66a792a49586266856b4684db9d590c36758caa0 (diff)
downloadqtwebsockets-62826288d5b1e02556c5815ec4d153eb7396f5e4.tar.gz
Export mask functions to be usable for unit testing
Change-Id: If72486c4543240448a8abdfa3cc7e96331ed0b05 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocketprotocol.h')
-rw-r--r--src/websockets/qwebsocketprotocol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/websockets/qwebsocketprotocol.h b/src/websockets/qwebsocketprotocol.h
index 2d1bea3..ca2d09f 100644
--- a/src/websockets/qwebsocketprotocol.h
+++ b/src/websockets/qwebsocketprotocol.h
@@ -96,8 +96,8 @@ inline bool isCloseCodeValid(int closeCode)
((closeCode >= 3000) || (closeCode < 1012));
}
-void mask(QByteArray *payload, quint32 maskingKey);
-void mask(char *payload, quint64 size, quint32 maskingKey);
+void Q_AUTOTEST_EXPORT mask(QByteArray *payload, quint32 maskingKey);
+void Q_AUTOTEST_EXPORT mask(char *payload, quint64 size, quint32 maskingKey);
inline Version currentVersion() { return V_LATEST; }