summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/analysis/contents
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-10-16 19:20:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-10-16 19:20:29 (GMT)
commit3a2dcf9f1e6718b0a45feed8eefadb71be66f4ac (patch)
tree1867d8f1b108d2e954697257c8af8c8301a2eb7f /plugins/pychrysa/analysis/contents
parent83dccba3a9b6c18d6fe7b6f30794a16336803962 (diff)
Extended the Python bindings in order to load and read contents.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@597 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/pychrysa/analysis/contents')
-rw-r--r--plugins/pychrysa/analysis/contents/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/pychrysa/analysis/contents/file.c b/plugins/pychrysa/analysis/contents/file.c
index b145662..d356197 100644
--- a/plugins/pychrysa/analysis/contents/file.c
+++ b/plugins/pychrysa/analysis/contents/file.c
@@ -109,6 +109,7 @@ PyTypeObject py_file_content_type = {
.tp_getset = py_file_content_getseters,
.tp_new = (newfunc)py_file_content_new
*/
+ .tp_new = (newfunc)py_file_content_new
};
@@ -160,7 +161,7 @@ PyTypeObject *get_python_file_content_type(void)
* Remarques : - *
* *
******************************************************************************/
-#include "../content.h"
+#include "../content.h"//////////////////////////////////////////
bool register_python_file_content(PyObject *module)
{
PyTypeObject *py_file_content_type; /* Type Python 'BinContent' */