}
bool
-initModulePart_Name(PyObject* mod) {
-
- //
- // NameComparisonResult
- //
+initModulePart_NameComparisonResult(PyObject* mod) {
if (!initClass(name_comparison_result_type,
"NameComparisonResult", mod)) {
return (false);
addClassVariable(name_comparison_result_type, "COMMONANCESTOR",
Py_BuildValue("I", NameComparisonResult::COMMONANCESTOR));
+ return (true);
+}
- //
- // Name
- //
+bool
+initModulePart_Name(PyObject* mod) {
if (!initClass(name_type, "Name", mod)) {
return (false);
}
addClassVariable(name_type, "ROOT_NAME",
createNameObject(Name::ROOT_NAME()));
-
-
// Add the exceptions to the module
try {
po_EmptyLabel = PyErr_NewException("pydnspp.EmptyLabel", NULL, NULL);
// for each part included above, we call its specific initializer
+ if (!initModulePart_NameComparisonResult(mod)) {
+ return (NULL);
+ }
+
if (!initModulePart_Name(mod)) {
return (NULL);
}