summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/format
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/format')
-rw-r--r--plugins/pychrysalide/format/constants.c6
-rw-r--r--plugins/pychrysalide/format/symbol.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/pychrysalide/format/constants.c b/plugins/pychrysalide/format/constants.c
index ea2aedc..1561032 100644
--- a/plugins/pychrysalide/format/constants.c
+++ b/plugins/pychrysalide/format/constants.c
@@ -66,7 +66,8 @@ bool define_binary_symbol_constants(PyTypeObject *type)
goto exit;
}
- result = attach_constants_group(type, false, "SymbolType", values, "Available values for symbol types.");
+ result = attach_constants_group_to_type(type, false, "SymbolType", values,
+ "Available values for symbol types.");
values = PyDict_New();
@@ -81,7 +82,8 @@ bool define_binary_symbol_constants(PyTypeObject *type)
goto exit;
}
- result = attach_constants_group(type, false, "SymbolStatus", values, "Status of a symbol visibility.");
+ result = attach_constants_group_to_type(type, false, "SymbolStatus", values,
+ "Status of a symbol visibility.");
exit:
diff --git a/plugins/pychrysalide/format/symbol.c b/plugins/pychrysalide/format/symbol.c
index 873510d..66e4dfc 100644
--- a/plugins/pychrysalide/format/symbol.c
+++ b/plugins/pychrysalide/format/symbol.c
@@ -439,7 +439,7 @@ static PyObject *py_binary_symbol_get_stype(PyObject *self, void *closure)
symbol = G_BIN_SYMBOL(pygobject_get(self));
type = g_binary_symbol_get_stype(symbol);
- result = cast_with_constants_group(get_python_binary_symbol_type(), "SymbolType", type);
+ result = cast_with_constants_group_from_type(get_python_binary_symbol_type(), "SymbolType", type);
return result;
@@ -508,7 +508,7 @@ static PyObject *py_binary_symbol_get_status(PyObject *self, void *closure)
symbol = G_BIN_SYMBOL(pygobject_get(self));
status = g_binary_symbol_get_status(symbol);
- result = cast_with_constants_group(get_python_binary_symbol_type(), "SymbolStatus", status);
+ result = cast_with_constants_group_from_type(get_python_binary_symbol_type(), "SymbolStatus", status);
return result;