| IDA SDK

Functions
idalib.hpp File Reference

## Detailed Description

Contains the IDA as library functions.

## Functions
idaman int ida_export | init_library (int argc=0, char *argv[]=nullptr)
| Initialize ida as library. More...
idaman int ida_export | open_database (const char *file_path, bool run_auto)
| Open the database specified in file_path argument If the database did not exist, a new database will be created and the input file will be loaded. More...
idaman void ida_export | close_database (bool save)
| Close the current database. More...

## Function Documentation

## ◆ init_library()

idaman int ida_export init_library | ( | int | argc = `0`,
|  | char * | argv[] = `nullptr`
| ) |  |

Initialize ida as library.

Parameters

  argc | Optional parameters count for advanced usage
  argv | Optional parameters list for advanced usage

Returns
  0 if successfully initialized, non zero in case of errors

## ◆ open_database()

idaman int ida_export open_database | ( | const char * | file_path,
|  | bool | run_auto
| ) |  |

Open the database specified in file_path argument If the database did not exist, a new database will be created and the input file will be loaded.

Parameters

  file_path | the file name to be loaded
  run_auto | if set to true, library will run also auto analysis

Returns
  0 if successfully opened, otherwise error code

## ◆ close_database()

idaman void ida_export close_database | ( | bool | save | ) |

Close the current database.

Parameters

  save | boolean value, save or discard changes