projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove Diskstream member playback_distance that can be
[ardour.git]
/
libs
/
pbd
/
filesystem.cc
diff --git
a/libs/pbd/filesystem.cc
b/libs/pbd/filesystem.cc
index 886cd24d99a05876a72bfd13c979cf8a5230193c..661e21cbd5074bf971fb5e5b12c9225ede2912c0 100644
(file)
--- a/
libs/pbd/filesystem.cc
+++ b/
libs/pbd/filesystem.cc
@@
-21,6
+21,8
@@
#include <glib.h>
#include <glib/gstdio.h>
#include <glib.h>
#include <glib/gstdio.h>
+#include <giomm/file.h>
+
#include <cerrno>
#include <fstream>
#include <cerrno>
#include <fstream>
@@
-222,6
+224,14
@@
extension (const path & p)
}
}
+/** Take a (possibly) relative path and make it absolute */
+path
+get_absolute_path (const path & p)
+{
+ Glib::RefPtr<Gio::File> f = Gio::File::create_for_path (p.to_string ());
+ return f->get_path ();
+}
+
} // namespace sys
} // namespace PBD
} // namespace sys
} // namespace PBD