cmake files added, folder tree reorganized, pack test partially written

This commit is contained in:
romixlab
2014-09-22 20:03:00 +04:00
parent 39a26510dc
commit fd58047192
22 changed files with 1759 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef COMMON_H
#define COMMON_H
#include <QVariant>
namespace MsgPack {
/**
* pack some variant to byte array data
* when write == false only calculates and returns size
* when write == true writes bytes to data, and returns the same size
* return type size
*/
typedef quint32 (*pack_user_f)(const QVariant &variant, QByteArray &data, bool write);
typedef QVariant (*unpack_user_f)(QByteArray &data);
}
#endif // COMMON_H