|
@@ -187,11 +187,7 @@ initModulePart_MessageRenderer(PyObject* mod) {
|
|
}
|
|
}
|
|
|
|
|
|
bool
|
|
bool
|
|
-initModulePart_Name(PyObject* mod) {
|
|
|
|
-
|
|
|
|
- //
|
|
|
|
- // NameComparisonResult
|
|
|
|
- //
|
|
|
|
|
|
+initModulePart_NameComparisonResult(PyObject* mod) {
|
|
if (!initClass(name_comparison_result_type,
|
|
if (!initClass(name_comparison_result_type,
|
|
"NameComparisonResult", mod)) {
|
|
"NameComparisonResult", mod)) {
|
|
return (false);
|
|
return (false);
|
|
@@ -215,10 +211,11 @@ initModulePart_Name(PyObject* mod) {
|
|
addClassVariable(name_comparison_result_type, "COMMONANCESTOR",
|
|
addClassVariable(name_comparison_result_type, "COMMONANCESTOR",
|
|
Py_BuildValue("I", NameComparisonResult::COMMONANCESTOR));
|
|
Py_BuildValue("I", NameComparisonResult::COMMONANCESTOR));
|
|
|
|
|
|
|
|
+ return (true);
|
|
|
|
+}
|
|
|
|
|
|
- //
|
|
|
|
- // Name
|
|
|
|
- //
|
|
|
|
|
|
+bool
|
|
|
|
+initModulePart_Name(PyObject* mod) {
|
|
if (!initClass(name_type, "Name", mod)) {
|
|
if (!initClass(name_type, "Name", mod)) {
|
|
return (false);
|
|
return (false);
|
|
}
|
|
}
|
|
@@ -240,8 +237,6 @@ initModulePart_Name(PyObject* mod) {
|
|
addClassVariable(name_type, "ROOT_NAME",
|
|
addClassVariable(name_type, "ROOT_NAME",
|
|
createNameObject(Name::ROOT_NAME()));
|
|
createNameObject(Name::ROOT_NAME()));
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
// Add the exceptions to the module
|
|
// Add the exceptions to the module
|
|
try {
|
|
try {
|
|
po_EmptyLabel = PyErr_NewException("pydnspp.EmptyLabel", NULL, NULL);
|
|
po_EmptyLabel = PyErr_NewException("pydnspp.EmptyLabel", NULL, NULL);
|
|
@@ -785,6 +780,10 @@ PyInit_pydnspp(void) {
|
|
|
|
|
|
// for each part included above, we call its specific initializer
|
|
// for each part included above, we call its specific initializer
|
|
|
|
|
|
|
|
+ if (!initModulePart_NameComparisonResult(mod)) {
|
|
|
|
+ return (NULL);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (!initModulePart_Name(mod)) {
|
|
if (!initModulePart_Name(mod)) {
|
|
return (NULL);
|
|
return (NULL);
|
|
}
|
|
}
|