Commit ac2e283b authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[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.
parent 7a6f36fc
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment