Commit 01545072a2298c724ba828fbb1c490414ceabab9
1 parent
8de44186
Exists in
master
and in
3 other branches
Fixing windows builds.
Showing
2 changed files
with
26 additions
and
0 deletions
Show diff stats
lib3270.cbp
... | ... | @@ -107,14 +107,19 @@ |
107 | 107 | <Unit filename="src/lib3270++/abstract.cc" /> |
108 | 108 | <Unit filename="src/lib3270++/events.cc" /> |
109 | 109 | <Unit filename="src/lib3270++/host.cc" /> |
110 | + <Unit filename="src/lib3270++/ipc/session.cc" /> | |
111 | + <Unit filename="src/lib3270++/linux/request.cc" /> | |
112 | + <Unit filename="src/lib3270++/linux/session.cc" /> | |
110 | 113 | <Unit filename="src/lib3270++/local/events.cc" /> |
111 | 114 | <Unit filename="src/lib3270++/local/session.cc" /> |
112 | 115 | <Unit filename="src/lib3270++/private.h" /> |
113 | 116 | <Unit filename="src/lib3270++/session.cc" /> |
114 | 117 | <Unit filename="src/lib3270++/testprogram/testprogram.cc" /> |
118 | + <Unit filename="src/lib3270++/windows/request.cc" /> | |
115 | 119 | <Unit filename="src/lib3270++/windows/resources.rc"> |
116 | 120 | <Option compilerVar="WINDRES" /> |
117 | 121 | </Unit> |
122 | + <Unit filename="src/lib3270++/windows/session.cc" /> | |
118 | 123 | <Unit filename="src/lib3270/actions.c"> |
119 | 124 | <Option compilerVar="CC" /> |
120 | 125 | </Unit> | ... | ... |
src/lib3270++/windows/request.cc
... | ... | @@ -123,6 +123,27 @@ |
123 | 123 | return *this; |
124 | 124 | } |
125 | 125 | |
126 | + IPC::Request & IPC::Request::push(const bool arg) { | |
127 | + uint8_t value = (uint8_t) (arg ? 0xff : 0); | |
128 | + pushBlock(&value, sizeof(value))->type = IPC::Request::Boolean; | |
129 | + return *this; | |
130 | + } | |
131 | + | |
132 | + IPC::Request & IPC::Request::push(const uint8_t arg) { | |
133 | + pushBlock(&arg, sizeof(arg))->type = IPC::Request::Uchar; | |
134 | + return *this; | |
135 | + } | |
136 | + | |
137 | + IPC::Request & IPC::Request::push(const int32_t arg) { | |
138 | + pushBlock(&arg, sizeof(arg))->type = IPC::Request::Int32; | |
139 | + return *this; | |
140 | + } | |
141 | + | |
142 | + IPC::Request & IPC::Request::push(const uint32_t arg) { | |
143 | + pushBlock(&arg, sizeof(arg))->type = IPC::Request::Uint32; | |
144 | + return *this; | |
145 | + } | |
146 | + | |
126 | 147 | IPC::Request & IPC::Request::pop(std::string &value) { |
127 | 148 | DataBlock * block = getNextBlock(); |
128 | 149 | ... | ... |