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
+9 -1
View File
@@ -22,6 +22,9 @@
#include <string>
#include <sstream>
namespace LIEF {
namespace ELF {
template<class T>
using getter_t = T (Section::*)(void) const;
@@ -31,7 +34,9 @@ using setter_t = void (Section::*)(T);
template<class T>
using no_const_getter = T (Section::*)(void);
void init_ELF_Section_class(py::module& m) {
template<>
void create<Section>(py::module& m) {
// Section object
py::class_<Section, LIEF::Section>(m, "Section")
@@ -172,3 +177,6 @@ void init_ELF_Section_class(py::module& m) {
});
}
}
}