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 }