From b4bd6646b4dc641ee6e8fcdf5d5d31a049cf19aa Mon Sep 17 00:00:00 2001 From: peri4 Date: Sat, 11 Jun 2022 10:39:09 +0300 Subject: [PATCH] new PIP support --- libs/core/cdutils_protocol.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/core/cdutils_protocol.h b/libs/core/cdutils_protocol.h index a0e8e7e..4c36984 100644 --- a/libs/core/cdutils_protocol.h +++ b/libs/core/cdutils_protocol.h @@ -61,9 +61,13 @@ namespace CDUtils { # pragma pack(pop) - +#ifdef PIP_BINARY_STREAM +BINARY_STREAM_WRITE(PacketKDirectChange) {s << v.path << v.value; return s;} +BINARY_STREAM_READ (PacketKDirectChange) {s >> v.path >> v.value; return s;} +#else inline PIByteArray & operator <<(PIByteArray & s, const PacketKDirectChange & v) {s << v.path << v.value; return s;} inline PIByteArray & operator >>(PIByteArray & s, PacketKDirectChange & v) {s >> v.path >> v.value; return s;} +#endif }