Index: src/untrusted/minidump_generator/build_id.h |
diff --git a/src/untrusted/minidump_generator/build_id.h b/src/untrusted/minidump_generator/build_id.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8d0c017cf3bed8e666d7a4be780038915ca87b89 |
--- /dev/null |
+++ b/src/untrusted/minidump_generator/build_id.h |
@@ -0,0 +1,19 @@ |
+/* |
+ * Copyright (c) 2013 The Native Client Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#ifndef NATIVE_CLIENT_SRC_UNTRUSTED_MINIDUMP_GENERATOR_BUILD_ID_H_ |
+#define NATIVE_CLIENT_SRC_UNTRUSTED_MINIDUMP_GENERATOR_BUILD_ID_H_ 1 |
+ |
+/* |
+ * Get the build ID for the nexe. This is a byte string that uniquely |
+ * identifies the executable, typically a hash of its contents. |
+ * |
+ * On success, this returns 1 and fills out *data and *size. If the |
+ * build ID cannot be found, this returns 0. |
+ */ |
+int nacl_get_build_id(const char **data, size_t *size); |
+ |
+#endif |