forked from romixlab/qmsgpack
some bugs fixed, test written, version() added
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
|
||||
#include <QVariant>
|
||||
|
||||
#define MSGPACK_MAJOR 0
|
||||
#define MSGPACK_MINOR 0
|
||||
#define MSGPACK_VERSION 0
|
||||
|
||||
namespace MsgPack {
|
||||
/**
|
||||
* pack some variant to byte array data
|
||||
@@ -12,7 +16,9 @@ namespace MsgPack {
|
||||
*/
|
||||
typedef quint32 (*pack_user_f)(const QVariant &variant, QByteArray &data, bool write);
|
||||
|
||||
typedef QVariant (*unpack_user_f)(QByteArray &data);
|
||||
typedef QVariant (*unpack_user_f)(const QByteArray &data);
|
||||
|
||||
QString version();
|
||||
}
|
||||
|
||||
#endif // COMMON_H
|
||||
|
||||
Reference in New Issue
Block a user