mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Refactor some parts of the Architecture:
* JSON visitor are located in the format namespace * Visitor are *real* visitor * Visitable class has been renamed to Object * Due to a bug in Visual Studio 2015, we move to VS2017
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
#include "pyPE.hpp"
|
||||
|
||||
#include "LIEF/visitors/Hash.hpp"
|
||||
#include "LIEF/PE/hash.hpp"
|
||||
#include "LIEF/PE/resources/ResourceStringFileInfo.hpp"
|
||||
|
||||
#include <string>
|
||||
@@ -29,7 +29,7 @@ template<class T>
|
||||
using setter_t = void (ResourceStringFileInfo::*)(T);
|
||||
|
||||
void init_PE_ResourceStringFileInfo_class(py::module& m) {
|
||||
py::class_<ResourceStringFileInfo>(m, "ResourceStringFileInfo",
|
||||
py::class_<ResourceStringFileInfo, LIEF::Object>(m, "ResourceStringFileInfo",
|
||||
"Modelization of the ``StringFileInfo`` structure\n\n"
|
||||
"See: https://msdn.microsoft.com/fr-fr/library/windows/desktop/ms646989(v=vs.85).aspx")
|
||||
|
||||
@@ -57,7 +57,7 @@ void init_PE_ResourceStringFileInfo_class(py::module& m) {
|
||||
.def("__ne__", &ResourceStringFileInfo::operator!=)
|
||||
.def("__hash__",
|
||||
[] (const ResourceStringFileInfo& string_file_info) {
|
||||
return LIEF::Hash::hash(string_file_info);
|
||||
return Hash::hash(string_file_info);
|
||||
})
|
||||
|
||||
.def("__str__",
|
||||
|
||||
Reference in New Issue
Block a user