diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-07-21 20:21:59 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-07-21 20:21:59 (GMT) |
commit | 6a8385724c74b07cf9ed4cb9052f1af1816e3ea5 (patch) | |
tree | a7bea8a4bb9c816da77cf5c3dd44fbd8fb89b3a7 /plugins/pychrysalide/analysis/project.c | |
parent | f0682e7b195acbd4d83148f3829479d682f9ee9f (diff) |
Created more converters for Python arguments.
Diffstat (limited to 'plugins/pychrysalide/analysis/project.c')
-rw-r--r-- | plugins/pychrysalide/analysis/project.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/pychrysalide/analysis/project.c b/plugins/pychrysalide/analysis/project.c index 98610d5..335a350 100644 --- a/plugins/pychrysalide/analysis/project.c +++ b/plugins/pychrysalide/analysis/project.c @@ -254,18 +254,15 @@ static PyObject *py_study_project_discover_binary_content(PyObject *self, PyObje static PyObject *py_study_project_attach_content(PyObject *self, PyObject *args) { - PyObject *content_obj; /* Objet pour le contenu */ - int ret; /* Bilan de lecture des args. */ GLoadedContent *content; /* Instance GLib correspondante*/ + int ret; /* Bilan de lecture des args. */ GStudyProject *project; /* Version GLib du format */ - ret = PyArg_ParseTuple(args, "O!", get_python_loaded_content_type(), &content_obj); + ret = PyArg_ParseTuple(args, "O&", convert_to_loaded_content, &content); if (!ret) return NULL; project = G_STUDY_PROJECT(pygobject_get(self)); - content = G_LOADED_CONTENT(pygobject_get(content_obj)); - g_study_project_attach_content(project, content); Py_RETURN_NONE; |