2014-09-07 22:24:14 +04:00
|
|
|
#ifndef MSGPACK_H
|
|
|
|
|
#define MSGPACK_H
|
|
|
|
|
#include <QByteArray>
|
|
|
|
|
#include <QVariantList>
|
2014-09-18 22:10:51 +04:00
|
|
|
#include "msgpack_common.h"
|
2014-09-07 22:24:14 +04:00
|
|
|
|
|
|
|
|
namespace MsgPack
|
|
|
|
|
{
|
2014-09-14 23:40:30 +04:00
|
|
|
QVariant unpack(const QByteArray &data);
|
2014-09-19 23:26:24 +04:00
|
|
|
bool registerUnpacker(qint8 msgpackType, unpack_user_f unpacker);
|
2014-09-18 22:10:51 +04:00
|
|
|
|
2014-09-14 23:40:30 +04:00
|
|
|
QByteArray pack(const QVariant &variant);
|
2014-09-18 22:10:51 +04:00
|
|
|
bool registerPacker(QMetaType::Type qType, qint8 msgpackType, pack_user_f packer);
|
2014-09-07 22:24:14 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // MSGPACK_H
|