diff options
author | Ed Maste <emaste@FreeBSD.org> | 2013-12-03 18:51:59 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2013-12-03 18:51:59 +0000 |
commit | 86758c718870f701bc69c1ca05495305ed1c5b85 (patch) | |
tree | b2051e4e4856cc58ac7e2d20242b870b4f355ca1 /source/API/SBFileSpec.cpp | |
parent | f21a844f60ae6c74fcf1fddca32461acce3c1ee0 (diff) |
Notes
Diffstat (limited to 'source/API/SBFileSpec.cpp')
-rw-r--r-- | source/API/SBFileSpec.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/API/SBFileSpec.cpp b/source/API/SBFileSpec.cpp index fc207d071dbc8..4fd2866c9b05b 100644 --- a/source/API/SBFileSpec.cpp +++ b/source/API/SBFileSpec.cpp @@ -121,6 +121,24 @@ SBFileSpec::GetDirectory() const return s; } +void +SBFileSpec::SetFilename(const char *filename) +{ + if (filename && filename[0]) + m_opaque_ap->GetFilename().SetCString(filename); + else + m_opaque_ap->GetFilename().Clear(); +} + +void +SBFileSpec::SetDirectory(const char *directory) +{ + if (directory && directory[0]) + m_opaque_ap->GetDirectory().SetCString(directory); + else + m_opaque_ap->GetDirectory().Clear(); +} + uint32_t SBFileSpec::GetPath (char *dst_path, size_t dst_len) const { |