summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-11-11 18:47:15 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-11-11 18:47:15 (GMT)
commit04f9aebee5249624ccd4173989354cd93474376f (patch)
tree90c23774e2898be78a372650a6d6d219104196fb /plugins/pychrysalide/analysis
parent77c68b54d4b2970a749eb4a658c32d2a16deacf6 (diff)
Extended the Python bindings.
Diffstat (limited to 'plugins/pychrysalide/analysis')
-rw-r--r--plugins/pychrysalide/analysis/loaded.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/pychrysalide/analysis/loaded.c b/plugins/pychrysalide/analysis/loaded.c
index 5fde43c..d25b4d3 100644
--- a/plugins/pychrysalide/analysis/loaded.c
+++ b/plugins/pychrysalide/analysis/loaded.c
@@ -281,6 +281,12 @@ static PyObject *py_loaded_content_get_content(PyObject *self, void *closure)
GLoadedContent *content; /* Version GLib de l'élément */
GBinContent *bincnt; /* Contenu binaire associé */
+#define LOADED_CONTENT_CONTENT_ATTRIB PYTHON_GET_DEF_FULL \
+( \
+ content, py_loaded_content, \
+ "Binary content, provided as a pychrysalide.analysis.BinContent instance." \
+)
+
content = G_LOADED_CONTENT(pygobject_get(self));
bincnt = g_loaded_content_get_content(content);
@@ -325,10 +331,7 @@ PyTypeObject *get_python_loaded_content_type(void)
};
static PyGetSetDef py_loaded_content_getseters[] = {
- {
- "content", py_loaded_content_get_content, NULL,
- "Binary content.", NULL
- },
+ LOADED_CONTENT_CONTENT_ATTRIB,
{ NULL }
};