mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Resolve #119 and enhance ELF Python bindings
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "pyELF.hpp"
|
||||
#include "LIEF/ELF/Structures.hpp"
|
||||
|
||||
namespace LIEF {
|
||||
namespace ELF {
|
||||
void init_ELF32_sizes(py::module& m) {
|
||||
enum SIZES : size_t {};
|
||||
py::enum_<SIZES>(m, "SIZES")
|
||||
@@ -49,3 +51,6 @@ void init_ELF64_sizes(py::module& m) {
|
||||
.value("VERDAUX", static_cast<SIZES>(sizeof(Elf64_Verdaux)))
|
||||
.export_values();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user