mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
This commit cleans and modernizes the code base of LIEF.
Among the changes: - It removes the ``and, or, not`` keywords - It updates the Documentation - It moves the internal structures in the ``details::`` namespace
This commit is contained in:
@@ -35,13 +35,15 @@ using setter_t = void (DynamicEntryLibrary::*)(T);
|
||||
|
||||
template<>
|
||||
void create<DynamicEntryLibrary>(py::module& m) {
|
||||
py::class_<DynamicEntryLibrary, DynamicEntry>(m, "DynamicEntryLibrary",
|
||||
R"delim(
|
||||
Class which represents a ``DT_NEEDED`` entry in the dynamic table.
|
||||
|
||||
This kind of entry is usually used to create library dependency.
|
||||
)delim")
|
||||
|
||||
//
|
||||
// Dynamic Entry Library object
|
||||
//
|
||||
py::class_<DynamicEntryLibrary, DynamicEntry>(m, "DynamicEntryLibrary")
|
||||
.def(py::init<const std::string &>(),
|
||||
"Constructor from library name",
|
||||
"Constructor from a library name",
|
||||
"library_name"_a)
|
||||
|
||||
.def_property("name",
|
||||
@@ -49,7 +51,7 @@ void create<DynamicEntryLibrary>(py::module& m) {
|
||||
return safe_string_converter(obj.name());
|
||||
},
|
||||
static_cast<setter_t<const std::string&>>(&DynamicEntryLibrary::name),
|
||||
"Return library's name")
|
||||
"Library associated with this entry (e.g. ``libc.so.6``)")
|
||||
|
||||
.def("__eq__", &DynamicEntryLibrary::operator==)
|
||||
.def("__ne__", &DynamicEntryLibrary::operator!=)
|
||||
|
||||
Reference in New Issue
Block a user