mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-24 18:16:55 +01:00
1258fab948
- IDA Pro 6.2 support - added set_idc_func_ex(): it is now possible to add new IDC functions using Python - added visit_patched_bytes() (see ex_patch.py) - added support for the multiline text input control in the Form class - added support for the editable/readonly dropdown list control in the Form class - added execute_sync() to register a function call into the UI message queue - added execute_ui_requests() / check ex_uirequests.py - added add_hotkey() / del_hotkey() to bind Python methods to hotkeys - added register_timer()/unregister_timer(). Check ex_timer.py - added the IDC (Arrays) netnode manipulation layer into idc.py - added idautils.Structs() and StructMembers() generator functions - removed the "Run Python Statement" menu item. IDA now has a unified dialog. Use RunPlugin("python", 0) to invoke it manually. - better error messages for script plugins, loaders and processor modules - bugfix: Dbg_Hooks.dbg_run_to() was receiving wrong input - bugfix: A few Enum related functions were not properly working in idc.py - bugfix: GetIdaDirectory() and GetProcessName() were broken in idc.py - bugfix: idaapi.get_item_head() / idc.ItemHead() were not working
137 lines
3.4 KiB
OpenEdge ABL
137 lines
3.4 KiB
OpenEdge ABL
// Ignore kernel only & unexported symbols
|
|
%ignore netlink;
|
|
|
|
%ignore RootNode;
|
|
%ignore for_all_supvals;
|
|
%ignore netErrorHandler;
|
|
%ignore netnode_key_count;
|
|
|
|
%ignore netnode_check;
|
|
%ignore netnode_kill;
|
|
%ignore netnode_start;
|
|
%ignore netnode_end;
|
|
%ignore netnode_next;
|
|
%ignore netnode_prev;
|
|
%ignore netnode_name;
|
|
%ignore netnode_rename;
|
|
%ignore netnode_valobj;
|
|
%ignore netnode_valstr;
|
|
%ignore netnode_set;
|
|
%ignore netnode_delvalue;
|
|
%ignore netnode_altval;
|
|
%ignore netnode_charval;
|
|
%ignore netnode_altval_idx8;
|
|
%ignore netnode_charval_idx8;
|
|
%ignore netnode_supval;
|
|
%ignore netnode_supstr;
|
|
%ignore netnode_supset;
|
|
%ignore netnode_supdel;
|
|
%ignore netnode_sup1st;
|
|
%ignore netnode_supnxt;
|
|
%ignore netnode_suplast;
|
|
%ignore netnode_supprev;
|
|
%ignore netnode_supval_idx8;
|
|
%ignore netnode_supstr_idx8;
|
|
%ignore netnode_supset_idx8;
|
|
%ignore netnode_supdel_idx8;
|
|
%ignore netnode_sup1st_idx8;
|
|
%ignore netnode_supnxt_idx8;
|
|
%ignore netnode_suplast_idx8;
|
|
%ignore netnode_supprev_idx8;
|
|
%ignore netnode_supdel_all;
|
|
%ignore netnode_supdel_range;
|
|
%ignore netnode_supdel_range_idx8;
|
|
%ignore netnode_hashval;
|
|
%ignore netnode_hashstr;
|
|
%ignore netnode_hashval_long;
|
|
%ignore netnode_hashset;
|
|
%ignore netnode_hashdel;
|
|
%ignore netnode_hash1st;
|
|
%ignore netnode_hashnxt;
|
|
%ignore netnode_hashlast;
|
|
%ignore netnode_hashprev;
|
|
%ignore netnode_blobsize;
|
|
%ignore netnode_getblob;
|
|
%ignore netnode_setblob;
|
|
%ignore netnode_delblob;
|
|
%ignore netnode_inited;
|
|
%ignore netnode_copy;
|
|
%ignore netnode_altshift;
|
|
%ignore netnode_charshift;
|
|
%ignore netnode_supshift;
|
|
%ignore netnode_altadjust;
|
|
%ignore netnode_exist;
|
|
|
|
%ignore netnode::truncate_zero_pages;
|
|
%ignore netnode::append_zero_pages;
|
|
%ignore netnode::createbase;
|
|
%ignore netnode::checkbase;
|
|
%ignore netnode::set_close_flag;
|
|
%ignore netnode::reserve_nodes;
|
|
%ignore netnode::validate;
|
|
%ignore netnode::upgrade;
|
|
%ignore netnode::compress;
|
|
%ignore netnode::inited;
|
|
%ignore netnode::init;
|
|
%ignore netnode::flush;
|
|
%ignore netnode::term;
|
|
%ignore netnode::killbase;
|
|
%ignore netnode::getdrive;
|
|
%ignore netnode::getgraph;
|
|
%ignore netnode::registerbase;
|
|
%ignore netnode::setbase;
|
|
|
|
%ignore netnode::altadjust;
|
|
%ignore netnode::getblob(void *buf, size_t *bufsize, nodeidx_t start, char tag);
|
|
%ignore netnode::operator nodeidx_t;
|
|
|
|
// Renaming one version of hashset() otherwise SWIG will not be able to activate the other one
|
|
%rename (hashset_idx) netnode::hashset(const char *idx, nodeidx_t value, char tag=htag);
|
|
|
|
%include "netnode.hpp"
|
|
|
|
%extend netnode
|
|
{
|
|
nodeidx_t index()
|
|
{
|
|
return self->operator nodeidx_t();
|
|
}
|
|
|
|
PyObject *getblob(nodeidx_t start, const char *tag)
|
|
{
|
|
// Get the blob and let IDA allocate the memory
|
|
size_t bufsize;
|
|
void *buf = self->getblob(NULL, &bufsize, start, *tag);
|
|
if ( buf == NULL )
|
|
Py_RETURN_NONE;
|
|
// Create a Python string
|
|
PyObject *py_str = PyString_FromStringAndSize((const char *)buf, bufsize);
|
|
// Free memory
|
|
qfree(buf);
|
|
|
|
return py_str;
|
|
}
|
|
|
|
PyObject *hashstr_buf(const char *idx, char tag=htag)
|
|
{
|
|
char buf[MAXSPECSIZE];
|
|
ssize_t sz = self->hashstr(idx, buf, sizeof(buf), tag);
|
|
if ( sz < 0 )
|
|
Py_RETURN_NONE;
|
|
else
|
|
return PyString_FromStringAndSize(buf, sz);
|
|
}
|
|
|
|
bool hashset_buf(const char *idx, PyObject *py_str, char tag=htag)
|
|
{
|
|
char *buf;
|
|
Py_ssize_t sz;
|
|
|
|
if ( PyString_AsStringAndSize(py_str, &buf, &sz) == -1 )
|
|
return false;
|
|
else
|
|
return self->hashset(idx, buf, sz, tag);
|
|
}
|
|
}
|
|
|