diff --git a/lib3270.cbp b/lib3270.cbp index 669aa0a..f89975e 100644 --- a/lib3270.cbp +++ b/lib3270.cbp @@ -107,14 +107,19 @@ + + + + + diff --git a/src/lib3270++/windows/request.cc b/src/lib3270++/windows/request.cc index 54bb244..f186bc7 100644 --- a/src/lib3270++/windows/request.cc +++ b/src/lib3270++/windows/request.cc @@ -123,6 +123,27 @@ return *this; } + IPC::Request & IPC::Request::push(const bool arg) { + uint8_t value = (uint8_t) (arg ? 0xff : 0); + pushBlock(&value, sizeof(value))->type = IPC::Request::Boolean; + return *this; + } + + IPC::Request & IPC::Request::push(const uint8_t arg) { + pushBlock(&arg, sizeof(arg))->type = IPC::Request::Uchar; + return *this; + } + + IPC::Request & IPC::Request::push(const int32_t arg) { + pushBlock(&arg, sizeof(arg))->type = IPC::Request::Int32; + return *this; + } + + IPC::Request & IPC::Request::push(const uint32_t arg) { + pushBlock(&arg, sizeof(arg))->type = IPC::Request::Uint32; + return *this; + } + IPC::Request & IPC::Request::pop(std::string &value) { DataBlock * block = getNextBlock(); -- libgit2 0.21.2