Sketching debugger protocol.

This commit is contained in:
Martín Lucas Golini
2024-12-02 01:02:14 -03:00
parent 83741283e0
commit 5ed72776d8
14 changed files with 1204 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#include "busprocess.hpp"
namespace ecode {
BusProcess::BusProcess( const Command& command ) :
mProcess( command.command, command.arguments,
Process::getDefaultOptions() | Process::Options::EnableAsync |
Process::Options::CombinedStdoutStderr,
command.environment ) {}
void BusProcess::startAsyncRead( ReadFn readFn ) {
mProcess.startAsyncRead( readFn, readFn );
}
size_t BusProcess::write( const char* buffer, const size_t& size ) {
return mProcess.write( buffer, size );
}
} // namespace ecode