Commit 0dc47c936c14dfa4958c0fff30ad6fe5c249d4f4

Authored by Perry Werneck
1 parent 3a509922

Working on IPC module for windows.

src/lib3270++/private.h
... ... @@ -223,9 +223,23 @@
223 223 private:
224 224  
225 225 #ifdef _WIN32
  226 + /// @brief IPC Data type.
  227 + enum Type : uint8_t {
  228 + String = 's',
  229 + Boolean = 'b',
  230 + Uchar = 'y',
  231 + Int16 = 'n',
  232 + Uint16 = 'q',
  233 + Int32 = 'i',
  234 + Int32x = 'h',
  235 + Uint32 = 'u',
  236 + Int64 = 'x',
  237 + Uint64 = 't'
  238 + };
  239 +
226 240 #pragma pack(1)
227 241 struct DataBlock {
228   - uint8_t type;
  242 + Type type;
229 243 };
230 244 #pragma pack()
231 245  
... ...
src/lib3270++/windows/request.cc
... ... @@ -81,6 +81,7 @@
81 81  
82 82 IPC::Request & IPC::Request::push(const char *arg) {
83 83 IPC::Request::DataBlock * block = createDataBlock(arg, strlen(arg)+1);
  84 + block->type = IPC::Request::String;
84 85 output.push_back(block);
85 86 return *this;
86 87 }
... ...