automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
common.h
1 #ifndef COMMON_WEBSOCKET_H_
2 #define COMMON_WEBSOCKET_H_
3 
4 #include <QJsonDocument>
5 #include <libwebsockets.h>
6 #include <memory>
7 
8 extern bool doBinary;
9 
10 void cleanJson(QByteArray &json);
11 
12 // libwebsocket_write helper function
13 int lwsWrite(struct lws *lws, QByteArray d);
14 int lwsWriteVariant(struct lws *lws, QVariant d);
15 
16 #endif