summaryrefslogtreecommitdiff
path: root/pr/include/prlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'pr/include/prlink.h')
-rw-r--r--pr/include/prlink.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pr/include/prlink.h b/pr/include/prlink.h
index 3787a369..5ccd25f1 100644
--- a/pr/include/prlink.h
+++ b/pr/include/prlink.h
@@ -239,6 +239,14 @@ NSPR_API(PRFuncPtr) PR_FindFunctionSymbolAndLibrary(const char *name,
NSPR_API(PRLibrary*) PR_LoadStaticLibrary(
const char *name, const PRStaticLinkTable *table);
+/*
+** Return the pathname of the file that the library "name" was loaded
+** from. "addr" is the address of a function defined in the library.
+**
+** The caller is responsible for freeing the result with PR_Free.
+*/
+NSPR_API(char *) PR_GetLibraryFilePathname(const char *name, PRFuncPtr addr);
+
PR_END_EXTERN_C
#endif /* prlink_h___ */