summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysa/analysis')
-rw-r--r--plugins/pychrysa/analysis/contents/module.c4
-rw-r--r--plugins/pychrysa/analysis/db/items/module.c4
-rw-r--r--plugins/pychrysa/analysis/db/module.c4
-rw-r--r--plugins/pychrysa/analysis/module.c4
4 files changed, 16 insertions, 0 deletions
diff --git a/plugins/pychrysa/analysis/contents/module.c b/plugins/pychrysa/analysis/contents/module.c
index d504534..2daa62c 100644
--- a/plugins/pychrysa/analysis/contents/module.c
+++ b/plugins/pychrysa/analysis/contents/module.c
@@ -30,6 +30,7 @@
#include "file.h"
#include "restricted.h"
+#include "../../access.h"
@@ -84,6 +85,9 @@ bool add_analysis_contents_module_to_python_module(PyObject *super)
result &= register_python_file_content(module);
result &= register_python_restricted_content(module);
+ if (result)
+ register_access_to_python_module("pychrysalide.analysis.contents", module);
+
loading_failed:
assert(result);
diff --git a/plugins/pychrysa/analysis/db/items/module.c b/plugins/pychrysa/analysis/db/items/module.c
index 73ea3d3..cf0fe56 100644
--- a/plugins/pychrysa/analysis/db/items/module.c
+++ b/plugins/pychrysa/analysis/db/items/module.c
@@ -29,6 +29,7 @@
#include "comment.h"
+#include "../../../access.h"
@@ -80,6 +81,9 @@ bool add_analysis_db_items_module_to_python_module(PyObject *super)
result &= register_python_db_comment(module);
+ if (result)
+ register_access_to_python_module("pychrysalide.analysis.db.items", module);
+
loading_failed:
assert(result);
diff --git a/plugins/pychrysa/analysis/db/module.c b/plugins/pychrysa/analysis/db/module.c
index eac3641..1c4da25 100644
--- a/plugins/pychrysa/analysis/db/module.c
+++ b/plugins/pychrysa/analysis/db/module.c
@@ -32,6 +32,7 @@
#include "collection.h"
#include "item.h"
#include "items/module.h"
+#include "../../access.h"
@@ -87,6 +88,9 @@ bool add_analysis_db_module_to_python_module(PyObject *super)
result &= add_analysis_db_items_module_to_python_module(module);
+ if (result)
+ register_access_to_python_module("pychrysalide.analysis.db", module);
+
loading_failed:
assert(result);
diff --git a/plugins/pychrysa/analysis/module.c b/plugins/pychrysa/analysis/module.c
index ecae63c..253fe76 100644
--- a/plugins/pychrysa/analysis/module.c
+++ b/plugins/pychrysa/analysis/module.c
@@ -34,6 +34,7 @@
#include "routine.h"
#include "contents/module.h"
#include "db/module.h"
+#include "../access.h"
@@ -91,6 +92,9 @@ bool add_analysis_module_to_python_module(PyObject *super)
result &= add_analysis_contents_module_to_python_module(module);
result &= add_analysis_db_module_to_python_module(module);
+ if (result)
+ register_access_to_python_module("pychrysalide.analysis", module);
+
loading_failed:
assert(result);