summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-18 10:21:16 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-18 10:21:16 (GMT)
commit4f18f051936f633473c365d4c91ef7e77fa7feee (patch)
treee49603b80667a8cb2fc4592b5d4248f7cdf3494a /plugins/pychrysalide
parentd110791309783e6e30df837a81cf8e14e1ac9641 (diff)
Renamed the [Py]StructObject.
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r--plugins/pychrysalide/analysis/db/client.c22
-rw-r--r--plugins/pychrysalide/struct.c28
-rw-r--r--plugins/pychrysalide/struct.h2
3 files changed, 26 insertions, 26 deletions
diff --git a/plugins/pychrysalide/analysis/db/client.c b/plugins/pychrysalide/analysis/db/client.c
index 68699b9..d5d8b48 100644
--- a/plugins/pychrysalide/analysis/db/client.c
+++ b/plugins/pychrysalide/analysis/db/client.c
@@ -656,17 +656,17 @@ static PyObject *py_hub_client_get_snapshots(PyObject *self, void *closure)
int ret; /* Bilan d'une mise en place */
bool failed; /* Détection d'une erreur */
-#define HUB_CLIENT_SNAPSHOTS_ATTRIB PYTHON_GET_DEF_FULL \
-( \
- snapshots, py_hub_client, \
- "List of all existing snapshots, provided as a tuple of pychrysalide.PyStructObject." \
- "\n" \
- "Each snapshot is characterised by the following properties :\n" \
- "* parent_id : identifier of the parent snapshot;\n" \
- "* id : identifier of the snapshot;\n" \
- "* created : timestamp of the creation date;\n" \
- "* name : name of the snapshot, or None;\n" \
- "* desc : description of the snapshot, or None." \
+#define HUB_CLIENT_SNAPSHOTS_ATTRIB PYTHON_GET_DEF_FULL \
+( \
+ snapshots, py_hub_client, \
+ "List of all existing snapshots, provided as a tuple of pychrysalide.StructObject." \
+ "\n" \
+ "Each snapshot is characterised by the following properties :\n" \
+ "* parent_id : identifier of the parent snapshot;\n" \
+ "* id : identifier of the snapshot;\n" \
+ "* created : timestamp of the creation date;\n" \
+ "* name : name of the snapshot, or None;\n" \
+ "* desc : description of the snapshot, or None." \
)
client = G_HUB_CLIENT(pygobject_get(self));
diff --git a/plugins/pychrysalide/struct.c b/plugins/pychrysalide/struct.c
index 2569fa2..28dbc51 100644
--- a/plugins/pychrysalide/struct.c
+++ b/plugins/pychrysalide/struct.c
@@ -30,17 +30,17 @@
-#define STRUCT_OBJ_DOC \
- "PyStructObject is a sugar glue used to transmit C structures to Python." \
- "\n" \
- "For instance, let's consider the following C structure :\n" \
- "\n" \
- " struct _my_struct_t { int a; int b } var;\n" \
- "\n" \
- "Such a structure will be translated into a Python dictionary.\n" \
- "\n" \
- "Each previous field gets then accessible using :\n" \
- "* a direct access: *var.a*;\n" \
+#define STRUCT_OBJ_DOC \
+ "StructObject is a sugar glue used to transmit C structures to Python." \
+ "\n" \
+ "For instance, let's consider the following C structure :\n" \
+ "\n" \
+ " struct _my_struct_t { int a; int b } var;\n" \
+ "\n" \
+ "Such a structure will be translated into a Python dictionary.\n" \
+ "\n" \
+ "Each previous field gets then accessible using :\n" \
+ "* a direct access: *var.a*;\n" \
"* an access by name thanks to the dictionary: *var['b']*."
@@ -126,7 +126,7 @@ PyTypeObject *get_python_py_struct_type(void)
PyVarObject_HEAD_INIT(NULL, 0)
- .tp_name = "pychrysalide.PyStructObject",
+ .tp_name = "pychrysalide.StructObject",
.tp_basicsize = sizeof(PyStructObject),
.tp_getattr = py_struct_getattr,
@@ -150,7 +150,7 @@ PyTypeObject *get_python_py_struct_type(void)
* *
* Paramètres : - *
* *
-* Description : Prend en charge l'objet 'pychrysalide.PyStructObject'. *
+* Description : Prend en charge l'objet 'pychrysalide.StructObject'. *
* *
* Retour : Bilan de l'opération. *
* *
@@ -160,7 +160,7 @@ PyTypeObject *get_python_py_struct_type(void)
bool ensure_python_py_struct_is_registered(void)
{
- PyTypeObject *type; /* Type Python 'PyStructObject'*/
+ PyTypeObject *type; /* Type Python 'StructObject' */
PyObject *module; /* Module à recompléter */
type = get_python_py_struct_type();
diff --git a/plugins/pychrysalide/struct.h b/plugins/pychrysalide/struct.h
index bdddce4..dfe036e 100644
--- a/plugins/pychrysalide/struct.h
+++ b/plugins/pychrysalide/struct.h
@@ -34,7 +34,7 @@
/* Fournit un accès à une définition de type à diffuser. */
PyTypeObject *get_python_py_struct_type(void);
-/* Prend en charge l'objet 'pychrysalide.PyStructObject'. */
+/* Prend en charge l'objet 'pychrysalide.StructObject'. */
bool ensure_python_py_struct_is_registered(void);