2007-10-20 09:03:51 +02:00
|
|
|
%cstring_output_maxstr_none(char *buf, int bufsize);
|
|
|
|
|
|
|
|
%cstring_bounded_output(char *dstname, MAXSTR);
|
|
|
|
%cstring_bounded_output(char *buf, MAXSTR);
|
|
|
|
|
2008-02-26 20:53:27 +01:00
|
|
|
// This is for get_name_value's output value
|
|
|
|
%apply unsigned long *OUTPUT { uval_t *value };
|
|
|
|
|
2007-10-20 09:03:51 +02:00
|
|
|
// FIXME: These should be fixed
|
|
|
|
%ignore append_struct_fields;
|
|
|
|
%ignore get_struct_operand;
|
|
|
|
%ignore set_debug_names;
|
|
|
|
%ignore get_debug_name;
|
2009-09-17 13:46:35 +02:00
|
|
|
%ignore get_debug_names;
|
2007-10-20 09:03:51 +02:00
|
|
|
%ignore nameVa;
|
|
|
|
|
|
|
|
// Unexported & kernel-only
|
|
|
|
%ignore get_short_name;
|
|
|
|
%ignore get_long_name;
|
|
|
|
%ignore get_colored_short_name;
|
|
|
|
%ignore get_colored_long_name;
|
|
|
|
%ignore addDummyName;
|
|
|
|
%ignore convert_debug_names_to_normal;
|
|
|
|
%ignore convert_name_formats;
|
|
|
|
%ignore showhide_name;
|
|
|
|
%ignore clear_lname_bit;
|
|
|
|
%ignore fix_new_name;
|
|
|
|
%ignore rename;
|
|
|
|
%ignore move_names;
|
2008-10-01 17:03:57 +02:00
|
|
|
%ignore is_noret_name;
|
2007-10-20 09:03:51 +02:00
|
|
|
%ignore is_exit_name;
|
|
|
|
%ignore dummy_name_ea;
|
|
|
|
|
2009-09-17 13:46:35 +02:00
|
|
|
%rename (get_debug_names) py_get_debug_names;
|
|
|
|
%inline %{
|
|
|
|
PyObject *py_get_debug_names(ea_t ea1, ea_t ea2)
|
|
|
|
{
|
|
|
|
// Get debug names
|
|
|
|
ea_name_vec_t names;
|
|
|
|
get_debug_names(ea1, ea2, names);
|
|
|
|
PyObject *dict = Py_BuildValue("{}");
|
|
|
|
if (dict == NULL)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
for (ea_name_vec_t::iterator it=names.begin();it!=names.end();++it)
|
|
|
|
{
|
|
|
|
PyDict_SetItem(dict,
|
|
|
|
PyInt_FromSize_t(it->ea),
|
|
|
|
PyString_FromString(it->name.c_str()));
|
|
|
|
}
|
|
|
|
return dict;
|
|
|
|
}
|
|
|
|
%}
|
|
|
|
|
2007-10-20 09:03:51 +02:00
|
|
|
%include "name.hpp"
|
|
|
|
|