Commit 8acdcd6106b8c9a478f6a2c98a6843c6fbb0f7b5

Authored by Perry Werneck
1 parent ea9e6fc4
Exists in master and in 1 other branch develop

Fixing windows builds.

Showing 1 changed file with 21 additions and 0 deletions   Show diff stats
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  
... ...