util: Query build-id by symbol address, not library name
[mesa.git] / src / util / build_id.h
index 551ac6989bc061edfe615e1b4a3158648f6799b5..86d611d8db7b577863edffc7861f6391e0dec843 100644 (file)
  * IN THE SOFTWARE.
  */
 
+#ifndef BUILD_ID_H
+#define BUILD_ID_H
+
 #ifdef HAVE_DL_ITERATE_PHDR
 
 struct build_id_note;
 
 const struct build_id_note *
-build_id_find_nhdr(const char *filename);
+build_id_find_nhdr_for_addr(const void *addr);
 
 unsigned
 build_id_length(const struct build_id_note *note);
@@ -35,3 +38,5 @@ const uint8_t *
 build_id_data(const struct build_id_note *note);
 
 #endif
+
+#endif /* BUILD_ID_H */