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,9 @@
|
||||
|
||||
#include "pyELF.hpp"
|
||||
|
||||
namespace LIEF {
|
||||
namespace ELF {
|
||||
|
||||
template<class T>
|
||||
using getter_t = T (SymbolVersionRequirement::*)(void) const;
|
||||
|
||||
@@ -30,7 +33,9 @@ using setter_t = void (SymbolVersionRequirement::*)(T);
|
||||
template<class T>
|
||||
using no_const_getter = T (SymbolVersionRequirement::*)(void);
|
||||
|
||||
void init_ELF_SymbolVersionRequirement_class(py::module& m) {
|
||||
|
||||
template<>
|
||||
void create<SymbolVersionRequirement>(py::module& m) {
|
||||
|
||||
// Symbol Version Requirement object
|
||||
py::class_<SymbolVersionRequirement, LIEF::Object>(m, "SymbolVersionRequirement",
|
||||
@@ -66,3 +71,6 @@ void init_ELF_SymbolVersionRequirement_class(py::module& m) {
|
||||
return str;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user