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:
@@ -21,17 +21,19 @@
|
||||
#include "LIEF/ELF/hash.hpp"
|
||||
#include "LIEF/ELF/Header.hpp"
|
||||
|
||||
namespace LIEF {
|
||||
namespace ELF {
|
||||
|
||||
template<class T>
|
||||
using getter_t = T (Header::*)(void) const;
|
||||
|
||||
template<class T>
|
||||
using setter_t = void (Header::*)(T);
|
||||
|
||||
void init_ELF_Header_class(py::module& m) {
|
||||
|
||||
//
|
||||
// Header object
|
||||
//
|
||||
template<>
|
||||
void create<Header>(py::module& m) {
|
||||
|
||||
py::class_<Header, LIEF::Object>(m, "Header")
|
||||
.def(py::init<>())
|
||||
|
||||
@@ -194,3 +196,6 @@ void init_ELF_Header_class(py::module& m) {
|
||||
return str;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user