summaryrefslogtreecommitdiff
path: root/plugins/dexbnf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-01-05 23:04:45 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-01-05 23:04:45 (GMT)
commit24398cb372624bf281ee4d9eb07f2a076b3cc664 (patch)
treee5fab56d61b9a03fb8dd56e63b56c3ee404ac490 /plugins/dexbnf
parent9ce85bcdf8da124ad9538875f945ab5c4bb09e1e (diff)
Refreshed the Python documentation for the demanglers.
Diffstat (limited to 'plugins/dexbnf')
-rw-r--r--plugins/dexbnf/python/demangler.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/dexbnf/python/demangler.c b/plugins/dexbnf/python/demangler.c
index 60d751b..5084204 100644
--- a/plugins/dexbnf/python/demangler.c
+++ b/plugins/dexbnf/python/demangler.c
@@ -60,6 +60,17 @@ static PyObject *py_dex_demangler_new(PyTypeObject *type, PyObject *args, PyObje
PyObject *result; /* Instance à retourner */
GCompDemangler *demangler; /* Instance à transposer */
+#define DEX_DEMANGLER_DOC \
+ "DexDemangler is an implementation of a demangler suitable for processing" \
+ " Dex files.\n" \
+ "\n" \
+ "Instances can be created using the following constructor:\n" \
+ "\n" \
+ " DexDemangler()" \
+ "\n" \
+ "The Android BNF-style definitions for mangled names is available at:" \
+ " https://source.android.com/devices/tech/dalvik/dex-format#string-syntax."
+
demangler = g_dex_demangler_new();
result = pygobject_new(G_OBJECT(demangler));
@@ -102,7 +113,7 @@ PyTypeObject *get_python_dex_demangler_type(void)
.tp_flags = Py_TPFLAGS_DEFAULT,
- .tp_doc = "PyChrysalide Dex demangler",
+ .tp_doc = DEX_DEMANGLER_DOC,
.tp_methods = py_dex_demangler_methods,
.tp_getset = py_dex_demangler_getseters,