diff --git a/swig/area.i b/swig/area.i new file mode 100644 index 0000000..579eb24 --- /dev/null +++ b/swig/area.i @@ -0,0 +1,43 @@ +%ignore sarray; +%ignore lastreq_t; +%ignore AREA_CACHE_SIZE; +%ignore ANODE; +%ignore ANODE2; +%ignore AREA_LONG_COMMENT_TAG; +%ignore area_visitor_t; + +// Ignore the private members in areacb_t +%ignore areacb_t::areasCode; +%ignore areacb_t::infosize; +%ignore areacb_t::lastreq; +%ignore areacb_t::reserved; +%ignore areacb_t::sa; +%ignore areacb_t::cache; +%ignore areacb_t::allocate; +%ignore areacb_t::search; +%ignore areacb_t::readArea; +%ignore areacb_t::findCache; +%ignore areacb_t::addCache; +%ignore areacb_t::delCache; +%ignore areacb_t::free_cache; +%ignore areacb_t::find_nth_start; +%ignore areacb_t::build_optimizer; +%ignore areacb_t::move_area_comment; +%ignore areacb_t::pack_and_write_area; +%ignore areacb_t::move_away; + +%ignore areacb_t::read_cb; +%ignore areacb_t::write_cb; +%ignore areacb_t::delcache_cb; +%ignore areacb_t::edit_cb; +%ignore areacb_t::kill_cb; +%ignore areacb_t::new_cb; + +%ignore areacb_t::choose_area; +%ignore areacb_t::choose_area2; +%ignore areacb_t::find_prev_gap; +%ignore areacb_t::find_next_gap; + +%ignore areacb_t::move_areas; + +%include "area.hpp" diff --git a/swig/auto.i b/swig/auto.i index 8169599..8b864b5 100644 --- a/swig/auto.i +++ b/swig/auto.i @@ -1,3 +1,4 @@ +%ignore queue_weak_code; %ignore auto_process_all; %ignore autoPlanned; %ignore nextPlanned; diff --git a/swig/bytes.i b/swig/bytes.i index 84e10b2..cdedb7a 100644 --- a/swig/bytes.i +++ b/swig/bytes.i @@ -49,6 +49,8 @@ %ignore unlock_dbgmem_config; %ignore set_op_type_no_event; %ignore shuffle_tribytes; +%ignore set_enum_id; +%ignore validate_tofs; %ignore ida_vpagesize; %ignore ida_vpages; %ignore ida_npagesize; diff --git a/swig/expr.i b/swig/expr.i index 2bca823..d30bfdc 100644 --- a/swig/expr.i +++ b/swig/expr.i @@ -24,8 +24,10 @@ %ignore idaapi init_idc; %ignore idaapi term_idc; %ignore del_idc_userfuncs; +%ignore del_idc_userdefs; %ignore find_builtin_idc_func; %ignore idc_lx; +%ignore idc_vars; %cstring_output_maxstr_none(char *errbuf, size_t errbufsize); diff --git a/swig/ida.i b/swig/ida.i index abfe486..902b5cc 100644 --- a/swig/ida.i +++ b/swig/ida.i @@ -5,9 +5,16 @@ %ignore read; %ignore write; +%ignore setflag(uchar &where,uchar bit,int value); +%ignore setflag(ushort &where,ushort bit,int value); +%ignore setflag(uint32 &where,uint32 bit,int value); + // Make idainfo::get_proc_name() work %cstring_bounded_output(char *buf, 8); +%ignore BADADDR; +%ignore BADSEL; + %include "ida.hpp" %clear(char *buf); diff --git a/swig/idp.i b/swig/idp.i index 85c9b6e..c5ed951 100644 --- a/swig/idp.i +++ b/swig/idp.i @@ -1,6 +1,25 @@ -%ignore gen_idb_event; +// Ignore the following symbols +%ignore WorkReg; +%ignore AbstractRegister; +%ignore rginfo; +%ignore bytes_t; +%ignore IDPOPT_STR; +%ignore IDPOPT_NUM; +%ignore IDPOPT_BIT; +%ignore IDPOPT_FLT; +%ignore IDPOPT_OK; +%ignore IDPOPT_BADKEY; +%ignore IDPOPT_BADTYPE; +%ignore IDPOPT_BADVALUE; +%ignore set_options_t; +%ignore read_user_config_file; +%ignore instruc_t; + +%ignore s_preline; +%ignore ca_operation_t; +%ignore _chkarg_cmd; +%ignore ENUM_SIZE; -// Ignore the function pointers %ignore asm_t::checkarg_dispatch; %ignore asm_t::func_header; %ignore asm_t::func_footer; @@ -32,6 +51,16 @@ %ignore processor_t::u_outspec; %ignore processor_t::is_align_insn; +%ignore processor_t::idp_notify; +%ignore processor_t::notify; +%ignore processor_t::set_idp_options; + +%ignore free_processor_module; +%ignore read_config_file; + +%ignore gen_idb_event; + + %include "idp.hpp" %feature("director") IDB_Hooks; diff --git a/swig/loader.i b/swig/loader.i index 3737c70..11c9ac5 100644 --- a/swig/loader.i +++ b/swig/loader.i @@ -100,8 +100,6 @@ %ignore DBCHK_NEW; %ignore check_database; %ignore open_database; -%ignore flush_buffers; -%ignore save_database; %ignore get_workbase_fname; %ignore close_database; %ignore compress_btree; diff --git a/swig/queue.i b/swig/queue.i index 6412168..ec30957 100644 --- a/swig/queue.i +++ b/swig/queue.i @@ -10,6 +10,10 @@ %ignore queue_del; %ignore mark_rollback; +%ignore mark_ida_decision; +%ignore unmark_ida_decision; + %ignore had_rolled_back; +%ignore ever_rolled_back; %include "queue.hpp" \ No newline at end of file diff --git a/swig/ua.i b/swig/ua.i index cc11e17..34625e5 100644 --- a/swig/ua.i +++ b/swig/ua.i @@ -1,6 +1,4 @@ -// Include the patched header -// All the unchecked declarations are between -// #ifndef SWIG + %include "ua.hpp" // Small function to get the global cmd pointer