some bugs fixed, test written, version() added

This commit is contained in:
romixlab
2014-09-26 22:03:24 +04:00
parent 93f45f9b0b
commit c07318c325
22 changed files with 562 additions and 333 deletions
+7 -1
View File
@@ -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