mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-15 15:32:51 +03:00
Sketching debugger protocol.
This commit is contained in:
19
src/tools/ecode/plugins/debugger/busprocess.cpp
Normal file
19
src/tools/ecode/plugins/debugger/busprocess.cpp
Normal 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
|
||||
Reference in New Issue
Block a user