Resolve #119 and enhance ELF Python bindings

This commit is contained in:
Romain Thomas
2018-06-08 10:48:29 +02:00
parent 163cd3bcc9
commit cd1cc457cf
63 changed files with 405 additions and 183 deletions
+8 -1
View File
@@ -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;
});
}
}
}