summaryrefslogtreecommitdiffstats
path: root/lib/libtqtrla/src/tqtrla.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libtqtrla/src/tqtrla.cpp')
-rw-r--r--lib/libtqtrla/src/tqtrla.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libtqtrla/src/tqtrla.cpp b/lib/libtqtrla/src/tqtrla.cpp
index 6320f3e..e8631cc 100644
--- a/lib/libtqtrla/src/tqtrla.cpp
+++ b/lib/libtqtrla/src/tqtrla.cpp
@@ -100,11 +100,15 @@ bool operator==( const ServiceType &s1, const ServiceType &s2 ) {
TQDataStream &operator<<( TQDataStream &s, const ServiceType &st )
{
+ TQ_INT8 tempchar;
+
s << st.type;
s << st.name;
s << st.description;
s << st.clientLibrary;
s << st.version;
+ tempchar = (st.singleInstance)?1:0;
+ s << tempchar;
return s;
}
@@ -118,11 +122,15 @@ TQDataStream &operator<<( TQDataStream &s, const ServiceType &st )
TQDataStream &operator>>( TQDataStream &s, ServiceType &st )
{
+ TQ_INT8 tempchar;
+
s >> st.type;
s >> st.name;
s >> st.description;
s >> st.clientLibrary;
s >> st.version;
+ s >> tempchar;
+ st.singleInstance = (tempchar != 0);
return s;
}