Files

16 lines
680 B
C++
Raw Permalink Normal View History

2026-02-25 18:13:43 +04:00
#include "logos_types.h"
2026-05-07 12:27:14 -03:00
// All three fields. The `error` field used to be dropped on the wire —
// senders set it, receivers got a default-constructed (null) QVariant —
// so any failed LogosResult looked like a success path with no explanation.
// Daemon and modules always build from the same SDK (they ship together in
// the same process group) so extending the wire format is safe.
2026-02-25 18:13:43 +04:00
QDataStream& operator<<(QDataStream& out, const LogosResult& result) {
2026-05-07 12:27:14 -03:00
out << result.success << result.value << result.error;
2026-02-25 18:13:43 +04:00
return out;
}
QDataStream& operator>>(QDataStream& in, LogosResult& result) {
2026-05-07 12:27:14 -03:00
in >> result.success >> result.value >> result.error;
2026-02-25 18:13:43 +04:00
return in;
}