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,6 +21,8 @@
|
||||
#include "LIEF/ELF/hash.hpp"
|
||||
#include "LIEF/ELF/SysvHash.hpp"
|
||||
|
||||
namespace LIEF {
|
||||
namespace ELF {
|
||||
|
||||
template<class T>
|
||||
using getter_t = T (SysvHash::*)(void) const;
|
||||
@@ -28,7 +30,8 @@ using getter_t = T (SysvHash::*)(void) const;
|
||||
template<class T>
|
||||
using setter_t = void (SysvHash::*)(T);
|
||||
|
||||
void init_ELF_SysvHash_class(py::module& m) {
|
||||
template<>
|
||||
void create<SysvHash>(py::module& m) {
|
||||
|
||||
py::class_<SysvHash, LIEF::Object>(m, "SysvHash")
|
||||
.def(py::init<>())
|
||||
@@ -72,3 +75,5 @@ void init_ELF_SysvHash_class(py::module& m) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user