summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis/db
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/analysis/db')
-rw-r--r--plugins/pychrysalide/analysis/db/constants.c12
-rw-r--r--plugins/pychrysalide/analysis/db/item.c2
-rw-r--r--plugins/pychrysalide/analysis/db/server.c2
3 files changed, 8 insertions, 8 deletions
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;