diff options
Diffstat (limited to 'source/API/SBAttachInfo.cpp')
| -rw-r--r-- | source/API/SBAttachInfo.cpp | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/source/API/SBAttachInfo.cpp b/source/API/SBAttachInfo.cpp index 07446df27dff..0f2ab7afc9c2 100644 --- a/source/API/SBAttachInfo.cpp +++ b/source/API/SBAttachInfo.cpp @@ -36,6 +36,15 @@ SBAttachInfo::SBAttachInfo (const char *path, bool wait_for) :      m_opaque_sp->SetWaitForLaunch (wait_for);  } +SBAttachInfo::SBAttachInfo (const char *path, bool wait_for, bool async) : +    m_opaque_sp (new ProcessAttachInfo()) +{ +    if (path && path[0]) +        m_opaque_sp->GetExecutableFile().SetFile(path, false); +    m_opaque_sp->SetWaitForLaunch (wait_for); +    m_opaque_sp->SetAsync(async); +} +  SBAttachInfo::SBAttachInfo (const SBAttachInfo &rhs) :      m_opaque_sp (new ProcessAttachInfo())  { @@ -127,6 +136,13 @@ SBAttachInfo::SetWaitForLaunch (bool b)      m_opaque_sp->SetWaitForLaunch (b);  } +void +SBAttachInfo::SetWaitForLaunch (bool b, bool async) +{ +    m_opaque_sp->SetWaitForLaunch (b); +    m_opaque_sp->SetAsync(async); +} +  bool  SBAttachInfo::GetIgnoreExisting ()  {  | 
