summaryrefslogtreecommitdiffstats
path: root/libdwelf/libdwelf.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-01-09 13:57:31 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-01-09 13:57:31 +0100
commitbc774f62436c4fe5082f0a70c6620fa0fdf823a9 (patch)
tree07963f45b2cdaccf12281712e2eef179dbce1fee /libdwelf/libdwelf.h
parent5da108a40dd24c7d3e4183ec9ae1904bb3f01575 (diff)
parent4ea9a2db164caadf836a65d5cdffb09a2d5a37ce (diff)
Merge tag 'elfutils-0.175'
elfutils 0.175 release Change-Id: I409f41767af349d0521351dd733879ad31c65aab
Diffstat (limited to 'libdwelf/libdwelf.h')
-rw-r--r--libdwelf/libdwelf.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libdwelf/libdwelf.h b/libdwelf/libdwelf.h
index 72089dbf..6d491847 100644
--- a/libdwelf/libdwelf.h
+++ b/libdwelf/libdwelf.h
@@ -1,5 +1,5 @@
/* Interfaces for libdwelf. DWARF ELF Low-level Functions.
- Copyright (C) 2014, 2015, 2016 Red Hat, Inc.
+ Copyright (C) 2014, 2015, 2016, 2018 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
@@ -125,6 +125,14 @@ extern const char *dwelf_strent_str (Dwelf_Strent *se)
extern void dwelf_strtab_free (Dwelf_Strtab *st)
__nonnull_attribute__ (1);
+/* Creates a read-only Elf handle from the given file handle. The
+ file may be compressed and/or contain a linux kernel image header,
+ in which case it is eagerly decompressed in full and the Elf handle
+ is created as if created with elf_memory (). On error NULL is
+ returned. The Elf handle should be closed with elf_end (). The
+ file handle will not be closed. Does not return ELF_K_NONE handles. */
+extern Elf *dwelf_elf_begin (int fd);
+
#ifdef __cplusplus
}
#endif