Index: tools/skpdiff/skpdiff_util.h |
diff --git a/tools/skpdiff/skpdiff_util.h b/tools/skpdiff/skpdiff_util.h |
index 9df1bc0b2a157f982dc49112d73fccee11a54f04..3c16a47873838603dae0605a8d19f40941c968ba 100644 |
--- a/tools/skpdiff/skpdiff_util.h |
+++ b/tools/skpdiff/skpdiff_util.h |
@@ -49,5 +49,13 @@ bool get_directory(const char path[], SkTArray<SkString>* entries); |
*/ |
bool glob_files(const char globPattern[], SkTArray<SkString>* entries); |
+/** |
+ * Gets the absolute version of the given path. |
+ * @param path The absoluate or relative path to expand |
+ * @return A malloc'd string that contains the absolute path or NULL on failure. You must free |
+ * it with free, unless it is NULL. |
+ */ |
+char* get_absolute_path(const char path[]); |
djsollen
2013/08/01 18:44:03
SkString ...(const SkString& path);
That way you
|
+ |
#endif |