diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-01-03 22:51:31 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-01-03 22:51:31 (GMT) |
commit | 8255d60ac64a851c2e7ca37d63aa1ba37d35b704 (patch) | |
tree | 06f1855dd7ead9da2acc0c595e3710faf503628f /plugins/pychrysalide/analysis | |
parent | 90b8f66eb8ae62d951dfbd333fb338e38874c9fe (diff) |
Used a Python enumeration for verbosity levels.
Diffstat (limited to 'plugins/pychrysalide/analysis')
-rw-r--r-- | plugins/pychrysalide/analysis/constants.c | 4 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/db/constants.c | 12 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/db/item.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/db/server.c | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/plugins/pychrysalide/analysis/constants.c b/plugins/pychrysalide/analysis/constants.c index de7e522..efb88e2 100644 --- a/plugins/pychrysalide/analysis/constants.c +++ b/plugins/pychrysalide/analysis/constants.c @@ -62,8 +62,8 @@ bool define_analysis_content_constants(PyTypeObject *type) goto exit; } - result = attach_constants_group(type, false, "SourceEndian", values, - "Endianness of handled data."); + result = attach_constants_group_to_type(type, false, "SourceEndian", values, + "Endianness of handled data."); exit: diff --git a/plugins/pychrysalide/analysis/db/constants.c b/plugins/pychrysalide/analysis/db/constants.c index 76385fd..fb2a0ea 100644 --- a/plugins/pychrysalide/analysis/db/constants.c +++ b/plugins/pychrysalide/analysis/db/constants.c @@ -63,8 +63,8 @@ bool define_db_protocol_constants(PyTypeObject *type) goto exit; } - result = attach_constants_group(type, false, "DBFeatures", values, - "Features provided by database items."); + result = attach_constants_group_to_type(type, false, "DBFeatures", values, + "Features provided by database items."); exit: @@ -105,8 +105,8 @@ bool define_db_item_constants(PyTypeObject *type) goto exit; } - result = attach_constants_group(type, true, "DbItemFlags", values, - "Properties of a database item."); + result = attach_constants_group_to_type(type, true, "DbItemFlags", values, + "Properties of a database item."); exit: @@ -144,8 +144,8 @@ bool define_hub_server_constants(PyTypeObject *type) goto exit; } - result = attach_constants_group(type, false, "ServerStartStatus", values, - "Status of a server start."); + result = attach_constants_group_to_type(type, false, "ServerStartStatus", values, + "Status of a server start."); exit: diff --git a/plugins/pychrysalide/analysis/db/item.c b/plugins/pychrysalide/analysis/db/item.c index 1d09923..9c0ece9 100644 --- a/plugins/pychrysalide/analysis/db/item.c +++ b/plugins/pychrysalide/analysis/db/item.c @@ -255,7 +255,7 @@ static PyObject *py_db_item_get_flags(PyObject *self, void *closure) flags = g_db_item_get_flags(item); - result = cast_with_constants_group(get_python_db_item_type(), "DbItemFlags", flags); + result = cast_with_constants_group_from_type(get_python_db_item_type(), "DbItemFlags", flags); return result; diff --git a/plugins/pychrysalide/analysis/db/server.c b/plugins/pychrysalide/analysis/db/server.c index cee6bf6..92d2218 100644 --- a/plugins/pychrysalide/analysis/db/server.c +++ b/plugins/pychrysalide/analysis/db/server.c @@ -157,7 +157,7 @@ static PyObject *py_hub_server_start(PyObject *self, PyObject *args) status = g_hub_server_start(server, backlog, true); - result = cast_with_constants_group(get_python_hub_server_type(), "ServerStartStatus", status); + result = cast_with_constants_group_from_type(get_python_hub_server_type(), "ServerStartStatus", status); return result; |