summaryrefslogtreecommitdiffstats
path: root/vm/Misc.h
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@android.com>2010-09-15 13:13:33 -0700
committerDan Bornstein <danfuzz@android.com>2010-09-15 13:13:33 -0700
commitbbf9d73a5677de73eaa3b4e1f6de94a24697aad1 (patch)
tree0d8a331b9941fd10dc618eace19a8b6207d648dc /vm/Misc.h
parent5170ba5e38ff9e1410fcbb65dc67ea6a6d5b4b17 (diff)
parenta5d998926bdc642ceef18959372fa08791a22c08 (diff)
downloadandroid_dalvik-bbf9d73a5677de73eaa3b4e1f6de94a24697aad1.tar.gz
android_dalvik-bbf9d73a5677de73eaa3b4e1f6de94a24697aad1.tar.bz2
android_dalvik-bbf9d73a5677de73eaa3b4e1f6de94a24697aad1.zip
resolved conflicts for merge of a5d99892 to dalvik-dev
Change-Id: I3c030a6b19416a2ac3ca709cdbcbc6b41e6379d3
Diffstat (limited to 'vm/Misc.h')
-rw-r--r--vm/Misc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/vm/Misc.h b/vm/Misc.h
index e188705c2..ec364d7b9 100644
--- a/vm/Misc.h
+++ b/vm/Misc.h
@@ -316,4 +316,23 @@ typedef struct {
} ProcStatData;
bool dvmGetThreadStats(ProcStatData* pData, pid_t tid);
+/*
+ * Returns the pointer to the "absolute path" part of the given path
+ * string, treating first (if any) instance of "/./" as a sentinel
+ * indicating the start of the absolute path. If the path isn't absolute
+ * in the usual way (i.e., starts with "/") and doesn't have the sentinel,
+ * then this returns NULL.
+ *
+ * For example:
+ * "/foo/bar/baz" returns "/foo/bar/baz"
+ * "foo/./bar/baz" returns "/bar/baz"
+ * "foo/bar/baz" returns NULL
+ *
+ * The sentinel is used specifically to aid in cross-optimization, where
+ * a host is processing dex files in a build tree, and where we don't want
+ * the build tree's directory structure to be baked into the output (such
+ * as, for example, in the dependency paths of optimized dex files).
+ */
+const char* dvmPathToAbsolutePortion(const char* path);
+
#endif /*_DALVIK_MISC*/