IDAPython for IDA 6.95: Initial commit

This commit is contained in:
Arnaud Diederen
2016-08-09 10:01:18 +02:00
parent c04b70e0e5
commit 62ddab8db6
197 changed files with 11206 additions and 12091 deletions
+29
View File
@@ -0,0 +1,29 @@
#include "py_custview.hpp"
//-------------------------------------------------------------------------
static PyObject *ex_install_command_interpreter(PyObject *self, PyObject *args)
{
PyObject *py_obj;
if ( !PyArg_ParseTuple(args, "O", &py_obj) )
return NULL;
return PyInt_FromLong(py_install_command_interpreter(py_obj));
}
//-------------------------------------------------------------------------
static PyObject *ex_remove_command_interpreter(PyObject *self, PyObject *args)
{
int cli_idx;
if ( !PyArg_ParseTuple(args, "i", &cli_idx) )
return NULL;
py_remove_command_interpreter(cli_idx);
Py_RETURN_NONE;
}
//-------------------------------------------------------------------------
static PyMethodDef py_methods_cli[] =
{
{ "install_command_interpreter", ex_install_command_interpreter, METH_VARARGS, "" },
{ "remove_command_interpreter", ex_remove_command_interpreter, METH_VARARGS, "" },
{ NULL, NULL, 0, NULL }
};
DRIVER_INIT_METHODS(cli);