summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-07-04 20:55:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-07-04 20:55:30 (GMT)
commit59febc74741332fec4df71962fe9174d511df384 (patch)
treee8d8004506850ebb168ef7ba0aacdeeeaa0f749c /plugins
parent5958d9b25f806df73cd0634de2c9475eb6497e8c (diff)
Save all needed information into project files.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysalide/analysis/binary.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/plugins/pychrysalide/analysis/binary.c b/plugins/pychrysalide/analysis/binary.c
index 68f2d88..c9dc9c5 100644
--- a/plugins/pychrysalide/analysis/binary.c
+++ b/plugins/pychrysalide/analysis/binary.c
@@ -124,15 +124,13 @@ static PyObject *py_loaded_binary_new(PyTypeObject *type, PyObject *args, PyObje
static PyObject *py_loaded_binary_get_client(PyObject *self, PyObject *args)
{
PyObject *result; /* Bilan à retourner */
- int internal; /* Nature du client visé */
- int ret; /* Bilan de lecture des args. */
GLoadedBinary *binary; /* Binaire en cours d'analyse */
GAnalystClient *client; /* Eventuel client en place */
#define LOADED_BINARY_GET_CLIENT_METHOD PYTHON_METHOD_DEF \
( \
- get_client, "$self, /, internal=True", \
- METH_VARARGS, py_loaded_binary, \
+ get_client, "$self", \
+ METH_NOARGS, py_loaded_binary, \
"Provide the client connected to an internal or remote server" \
" if defined, or return None otherwise.\n" \
"\n" \
@@ -140,14 +138,9 @@ static PyObject *py_loaded_binary_get_client(PyObject *self, PyObject *args)
" instance or *None*." \
)
- internal = 1;
-
- ret = PyArg_ParseTuple(args, "|p", &internal);
- if (!ret) return NULL;
-
binary = G_LOADED_BINARY(pygobject_get(self));
- client = g_loaded_binary_get_client(binary, internal);
+ client = g_loaded_binary_get_client(binary);
if (client != NULL)
{