Browse Source

[trac915] and one more minor cleanup: use "pydnspp." prefix instead of
deprecated "libdns_python." for fully qualified class names.
also updated the template .cc file accordingly.

JINMEI Tatuya 14 years ago
parent
commit
ac2e283bd9

+ 1 - 1
src/lib/dns/python/edns_python.cc

@@ -108,7 +108,7 @@ PyMethodDef EDNS_methods[] = {
 // Most of the functions are not actually implemented and NULL here.
 PyTypeObject edns_type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "libdns_python.EDNS",
+    "pydnspp.EDNS",
     sizeof(s_EDNS),                     // tp_basicsize
     0,                                  // tp_itemsize
     (destructor)EDNS_destroy,           // tp_dealloc

+ 1 - 1
src/lib/dns/python/tsig_python.cc

@@ -252,7 +252,7 @@ PyObject* po_TSIGContextError;
 // Most of the functions are not actually implemented and NULL here.
 PyTypeObject tsigcontext_type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "libdns_python.TSIGContext",
+    "pydnspp.TSIGContext",
     sizeof(s_TSIGContext),                 // tp_basicsize
     0,                                  // tp_itemsize
     reinterpret_cast<destructor>(TSIGContext_destroy),       // tp_dealloc

+ 1 - 1
src/lib/dns/python/tsig_rdata_python.cc

@@ -290,7 +290,7 @@ namespace python {
 // Most of the functions are not actually implemented and NULL here.
 PyTypeObject tsig_type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "libdns_python.TSIG",
+    "pydnspp.TSIG",
     sizeof(s_TSIG),                 // tp_basicsize
     0,                                  // tp_itemsize
     reinterpret_cast<destructor>(TSIG_destroy),       // tp_dealloc

+ 1 - 1
src/lib/dns/python/tsigerror_python.cc

@@ -235,7 +235,7 @@ namespace python {
 // Most of the functions are not actually implemented and NULL here.
 PyTypeObject tsigerror_type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "libdns_python.TSIGError",
+    "pydnspp.TSIGError",
     sizeof(s_TSIGError),                 // tp_basicsize
     0,                                  // tp_itemsize
     reinterpret_cast<destructor>(TSIGError_destroy),       // tp_dealloc

+ 2 - 2
src/lib/dns/python/tsigkey_python.cc

@@ -184,7 +184,7 @@ namespace python {
 // Most of the functions are not actually implemented and NULL here.
 PyTypeObject tsigkey_type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "libdns_python.TSIGKey",
+    "pydnspp.TSIGKey",
     sizeof(s_TSIGKey),                  // tp_basicsize
     0,                                  // tp_itemsize
     (destructor)TSIGKey_destroy,        // tp_dealloc
@@ -418,7 +418,7 @@ namespace dns {
 namespace python {
 PyTypeObject tsigkeyring_type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "libdns_python.TSIGKeyRing",
+    "pydnspp.TSIGKeyRing",
     sizeof(s_TSIGKeyRing),              // tp_basicsize
     0,                                  // tp_itemsize
     (destructor)TSIGKeyRing_destroy,    // tp_dealloc

+ 1 - 1
src/lib/dns/python/tsigrecord_python.cc

@@ -212,7 +212,7 @@ namespace python {
 // Most of the functions are not actually implemented and NULL here.
 PyTypeObject tsigrecord_type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "libdns_python.TSIGRecord",
+    "pydnspp.TSIGRecord",
     sizeof(s_TSIGRecord),                 // tp_basicsize
     0,                                  // tp_itemsize
     reinterpret_cast<destructor>(TSIGRecord_destroy),       // tp_dealloc

+ 1 - 1
src/lib/util/python/wrapper_template.cc

@@ -210,7 +210,7 @@ namespace python {
 // Most of the functions are not actually implemented and NULL here.
 PyTypeObject @cppclass@_type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "libdns_python.@CPPCLASS@",
+    "pydnspp.@CPPCLASS@",
     sizeof(s_@CPPCLASS@),                 // tp_basicsize
     0,                                  // tp_itemsize
     reinterpret_cast<destructor>(@CPPCLASS@_destroy),       // tp_dealloc