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:
@@ -38,20 +38,27 @@ template<>
|
||||
void create<SymbolVersionDefinition>(py::module& m) {
|
||||
|
||||
py::class_<SymbolVersionDefinition, LIEF::Object>(m, "SymbolVersionDefinition",
|
||||
"Class which modelization of an entry defined in ``DT_VERDEF`` (or ``.gnu.version_d``)")
|
||||
"Class which represents an entry defined in ``DT_VERDEF`` or ``.gnu.version_d``")
|
||||
|
||||
.def_property("version",
|
||||
static_cast<getter_t<uint16_t>>(&SymbolVersionDefinition::version),
|
||||
static_cast<setter_t<uint16_t>>(&SymbolVersionDefinition::version),
|
||||
"Version revision. Should holds 1")
|
||||
R"delim(
|
||||
Version revision. Should be 1
|
||||
|
||||
This field should always have the value ``1``. It will be changed
|
||||
if the versioning implementation has to be changed in an incompatible way.
|
||||
)delim")
|
||||
|
||||
.def_property("flags",
|
||||
static_cast<getter_t<uint16_t>>(&SymbolVersionDefinition::flags),
|
||||
static_cast<setter_t<uint16_t>>(&SymbolVersionDefinition::flags))
|
||||
static_cast<setter_t<uint16_t>>(&SymbolVersionDefinition::flags),
|
||||
"Version information")
|
||||
|
||||
.def_property("hash",
|
||||
static_cast<getter_t<uint32_t>>(&SymbolVersionDefinition::hash),
|
||||
static_cast<setter_t<uint32_t>>(&SymbolVersionDefinition::hash))
|
||||
static_cast<setter_t<uint32_t>>(&SymbolVersionDefinition::hash),
|
||||
"Hash value of the symbol's name (using ELF hash function)")
|
||||
|
||||
.def_property_readonly("auxiliary_symbols",
|
||||
static_cast<no_const_getter<it_symbols_version_aux>>(&SymbolVersionDefinition::symbols_aux),
|
||||
|
||||
Reference in New Issue
Block a user