Skip to content

Commit

Permalink
feat(version), refactor(importer): Bump version for release (i forgor…
Browse files Browse the repository at this point in the history
…), and replace some placeholder comments
  • Loading branch information
SpaghettDev committed Jun 21, 2024
1 parent df0e32e commit ce8a693
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion BromaIDA.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "3.1.0"
VERSION = "4.0.0"
__AUTHOR__ = "SpaghettDev"

PLUGIN_NAME = "BromaIDA"
Expand Down
28 changes: 15 additions & 13 deletions broma_ida/broma/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ class BIUtils:
"""BromaImporter utilities"""
@staticmethod
def get_function_info(ida_ea: int) -> Optional[ida_func_type_data_t]:
"""_summary_
"""Gets the info about a function
Args:
ida_ea (int): _description_
ida_ea (int): The function address
Returns:
func_type_data_t: _description_
Optional[ida_func_type_data_t]: The ida_func_type_data_t
of the function or None if not found
"""
tif = ida_tinfo_t()
func_info = ida_func_type_data_t()
Expand All @@ -70,14 +71,15 @@ def get_type_info(
name: str,
update: bool = False
) -> Optional[ida_tinfo_t]:
"""_summary_
"""Gets the info about a type/struct
Args:
name (str): _description_
update (bool): _description_. Defaults to False.
name (str): The name of the type/struct
update (bool): Should update the cache. Defaults to False.
Returns:
Optional[ida_tinfo_t]: _description_
Optional[ida_tinfo_t]: The ida_tinfo_t of the type
or None if not found
"""
if not hasattr(BIUtils.get_type_info, "types") or update:
BIUtils.get_type_info.types = {}
Expand All @@ -97,13 +99,13 @@ def get_type_info(

@staticmethod
def from_pybroma_args(args: dict[str, Type]) -> list[ArgType]:
"""_summary_
"""Converts pybroma args into a list of ArgTypes
Args:
args (dict[str, Type]): _description_
args (dict[str, Type]): The pybroma args
Returns:
list[ArgType]: _description_
list[ArgType]
"""
return [
ArgType({
Expand Down Expand Up @@ -197,13 +199,13 @@ def _get_function_signature(
# End of signature specific functions

def _codegen_classes(self, classes: dict[str, Class]) -> bool:
"""_summary_
"""Codegens the file that contains the parsed broma classes
Args:
classes (dict[str, Class]): _description_
classes (dict[str, Class])
Returns:
bool:
bool
"""
if not g_has_idaclang:
return False
Expand Down

0 comments on commit ce8a693

Please sign in to comment.