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 -4
View File
@@ -21,6 +21,8 @@
#include "LIEF/ELF/hash.hpp"
#include "LIEF/ELF/GnuHash.hpp"
namespace LIEF {
namespace ELF {
template<class T>
using getter_t = T (GnuHash::*)(void) const;
@@ -28,7 +30,9 @@ using getter_t = T (GnuHash::*)(void) const;
template<class T>
using setter_t = void (GnuHash::*)(T);
void init_ELF_GnuHash_class(py::module& m) {
template<>
void create<GnuHash>(py::module& m) {
py::class_<GnuHash, LIEF::Object>(m, "GnuHash")
.def(py::init<>())
@@ -106,8 +110,8 @@ void init_ELF_GnuHash_class(py::module& m) {
std::string str = stream.str();
return str;
});
}
}
}