diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-03-15 20:04:26 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-03-15 20:04:26 (GMT) |
commit | 8cfbcf2db62a65766e02618840c6296ba7d083d0 (patch) | |
tree | ab7f930a8c16f839ca46f8c88da61d8bb2b16de0 /plugins/elf/python/format.c | |
parent | 46cf7042cf511215001bb28c072821998a83d011 (diff) |
Improved the Python API for ELF dynamic items.
Diffstat (limited to 'plugins/elf/python/format.c')
-rw-r--r-- | plugins/elf/python/format.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/plugins/elf/python/format.c b/plugins/elf/python/format.c index 87ec5e6..e0195c4 100644 --- a/plugins/elf/python/format.c +++ b/plugins/elf/python/format.c @@ -174,16 +174,8 @@ PyTypeObject *get_python_elf_format_type(void) METH_VARARGS, "find_sections_by_type($self, type, /)\n--\n\nFind sections using a given type." }, - { - "find_dynamic_item_by_index", py_elf_format_find_dynamic_item_by_index, - METH_VARARGS, - "find_dynamic_item_by_index($self, index, /)\n--\n\nFind an item from the dynamic segment using a given index." - }, - { - "find_dynamic_item_by_type", py_elf_format_find_dynamic_item_by_type, - METH_VARARGS, - "find_dynamic_item_by_type($self, type, /)\n--\n\nFind an item from the dynamic segment using a given type." - }, + ELF_FORMAT_FIND_DYNAMIC_ITEM_BY_INDEX_METHOD, + ELF_FORMAT_FIND_DYNAMIC_ITEM_BY_TYPE_METHOD, { NULL } }; @@ -212,10 +204,7 @@ PyTypeObject *get_python_elf_format_type(void) "sizeof_rel", py_elf_format_get_sizeof_rel, NULL, "Provide the size of Elf_Rel structures for the loaded format.", NULL }, - { - "needed", py_elf_format_get_needed, NULL, - "Provide the list of requiered shared objects.", NULL - }, + ELF_FORMAT_NEEDED_ATTRIB, { NULL } }; |