(struct dl_phdr_info): New definition.
authordrepper <drepper>
Wed, 25 Jul 2001 20:44:10 +0000 (20:44 +0000)
committerdrepper <drepper>
Wed, 25 Jul 2001 20:44:10 +0000 (20:44 +0000)
(dl_iterate_phdr, __dl_iterate_phdr): New prototypes.

include/link.h

index 259866a..1964b6b 100644 (file)
@@ -230,4 +230,19 @@ struct link_map
     unsigned int l_idx;
   };
 
+struct dl_phdr_info
+  {
+    ElfW(Addr) dlpi_addr;
+    const char *dlpi_name;
+    const ElfW(Phdr) *dlpi_phdr;
+    ElfW(Half) dlpi_phnum;
+  };
+
+extern int dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
+                                            size_t size, void *data),
+                           void *data);
+extern int __dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
+                                              size_t size, void *data),
+                             void *data);
+
 #endif /* link.h */