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:
@@ -22,6 +22,9 @@
|
||||
|
||||
#include "pyELF.hpp"
|
||||
|
||||
namespace LIEF {
|
||||
namespace ELF {
|
||||
|
||||
template<class T>
|
||||
using getter_t = T (Segment::*)(void) const;
|
||||
|
||||
@@ -32,7 +35,8 @@ template<class T>
|
||||
using no_const_getter = T (Segment::*)(void);
|
||||
|
||||
|
||||
void init_ELF_Segment_class(py::module& m) {
|
||||
template<>
|
||||
void create<Segment>(py::module& m) {
|
||||
py::class_<Segment, LIEF::Object>(m, "Segment")
|
||||
|
||||
.def(py::init<>())
|
||||
@@ -158,3 +162,6 @@ void init_ELF_Segment_class(py::module& m) {
|
||||
return str;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user