# # # patch "automate_ostream.hh" # from [b4767dc3d7748882a70f559fabd5c8a48037e3f1] # to [d7fa401c88c9b69035201b918c721c5a5d38c10d] # # patch "cmd_automate.cc" # from [978be13bf9144deeb003382f429b7fc9d1ceeaab] # to [fab53cb117bb1e6a41072604506a18c7557f8e64] # ============================================================ --- automate_ostream.hh b4767dc3d7748882a70f559fabd5c8a48037e3f1 +++ automate_ostream.hh d7fa401c88c9b69035201b918c721c5a5d38c10d @@ -72,6 +72,20 @@ public: out->flush(); } } + void write_out_of_band(char type, std::string const& data) + { + unsigned chunksize = _bufsize; + size_t length = data.size(), offset = 0; + do + { + if (offset+chunksize>length) + chunksize = length-offset; + (*out) << cmdnum << ':' << err << ':' << type << ':' + << chunksize << ':' << data.substr(offset, chunksize); + offset+= chunksize; + } while (offsetflush(); + } int_type overflow(int_type c = traits_type::eof()) { ============================================================ --- cmd_automate.cc 978be13bf9144deeb003382f429b7fc9d1ceeaab +++ cmd_automate.cc fab53cb117bb1e6a41072604506a18c7557f8e64 @@ -17,7 +17,6 @@ #include "automate_ostream.hh" #include "automate_reader.hh" #include "ui.hh" -#include "key_store.hh" #include "lua.hh" #include "lua_hooks.hh" #include "database.hh"