|
@@ -71,7 +71,7 @@ static PyMethodDef MessageFlag_methods[] = {
|
|
|
|
|
|
static PyTypeObject messageflag_type = {
|
|
|
PyVarObject_HEAD_INIT(NULL, 0)
|
|
|
- "libdns_python.MessageFlag",
|
|
|
+ "pydnspp.MessageFlag",
|
|
|
sizeof(s_MessageFlag), // tp_basicsize
|
|
|
0, // tp_itemsize
|
|
|
(destructor)MessageFlag_destroy, // tp_dealloc
|
|
@@ -248,7 +248,7 @@ static PyMethodDef Opcode_methods[] = {
|
|
|
|
|
|
static PyTypeObject opcode_type = {
|
|
|
PyVarObject_HEAD_INIT(NULL, 0)
|
|
|
- "libdns_python.Opcode",
|
|
|
+ "pydnspp.Opcode",
|
|
|
sizeof(s_Opcode), // tp_basicsize
|
|
|
0, // tp_itemsize
|
|
|
(destructor)Opcode_destroy, // tp_dealloc
|
|
@@ -532,7 +532,7 @@ static PyMethodDef Rcode_methods[] = {
|
|
|
|
|
|
static PyTypeObject rcode_type = {
|
|
|
PyVarObject_HEAD_INIT(NULL, 0)
|
|
|
- "libdns_python.Rcode",
|
|
|
+ "pydnspp.Rcode",
|
|
|
sizeof(s_Rcode), // tp_basicsize
|
|
|
0, // tp_itemsize
|
|
|
(destructor)Rcode_destroy, // tp_dealloc
|
|
@@ -802,7 +802,7 @@ static PyMethodDef Section_methods[] = {
|
|
|
|
|
|
static PyTypeObject section_type = {
|
|
|
PyVarObject_HEAD_INIT(NULL, 0)
|
|
|
- "libdns_python.Section",
|
|
|
+ "pydnspp.Section",
|
|
|
sizeof(s_Section), // tp_basicsize
|
|
|
0, // tp_itemsize
|
|
|
(destructor)Section_destroy, // tp_dealloc
|
|
@@ -1117,7 +1117,7 @@ static PyMethodDef Message_methods[] = {
|
|
|
// Most of the functions are not actually implemented and NULL here.
|
|
|
static PyTypeObject message_type = {
|
|
|
PyVarObject_HEAD_INIT(NULL, 0)
|
|
|
- "libdns_python.Message",
|
|
|
+ "pydnspp.Message",
|
|
|
sizeof(s_Message), // tp_basicsize
|
|
|
0, // tp_itemsize
|
|
|
(destructor)Message_destroy, // tp_dealloc
|
|
@@ -1627,15 +1627,15 @@ initModulePart_Message(PyObject* mod) {
|
|
|
addClassVariable(message_type, "DEFAULT_MAX_UDPSIZE", Py_BuildValue("I", Message::DEFAULT_MAX_UDPSIZE));
|
|
|
|
|
|
/* Class-specific exceptions */
|
|
|
- po_MessageTooShort = PyErr_NewException("libdns_python.MessageTooShort", NULL, NULL);
|
|
|
+ po_MessageTooShort = PyErr_NewException("pydnspp.MessageTooShort", NULL, NULL);
|
|
|
PyModule_AddObject(mod, "MessageTooShort", po_MessageTooShort);
|
|
|
- po_InvalidMessageSection = PyErr_NewException("libdns_python.InvalidMessageSection", NULL, NULL);
|
|
|
+ po_InvalidMessageSection = PyErr_NewException("pydnspp.InvalidMessageSection", NULL, NULL);
|
|
|
PyModule_AddObject(mod, "InvalidMessageSection", po_InvalidMessageSection);
|
|
|
- po_InvalidMessageOperation = PyErr_NewException("libdns_python.InvalidMessageOperation", NULL, NULL);
|
|
|
+ po_InvalidMessageOperation = PyErr_NewException("pydnspp.InvalidMessageOperation", NULL, NULL);
|
|
|
PyModule_AddObject(mod, "InvalidMessageOperation", po_InvalidMessageOperation);
|
|
|
- po_InvalidMessageUDPSize = PyErr_NewException("libdns_python.InvalidMessageUDPSize", NULL, NULL);
|
|
|
+ po_InvalidMessageUDPSize = PyErr_NewException("pydnspp.InvalidMessageUDPSize", NULL, NULL);
|
|
|
PyModule_AddObject(mod, "InvalidMessageUDPSize", po_InvalidMessageUDPSize);
|
|
|
- po_DNSMessageBADVERS = PyErr_NewException("libdns_python.DNSMessageBADVERS", NULL, NULL);
|
|
|
+ po_DNSMessageBADVERS = PyErr_NewException("pydnspp.DNSMessageBADVERS", NULL, NULL);
|
|
|
PyModule_AddObject(mod, "DNSMessageBADVERS", po_DNSMessageBADVERS);
|
|
|
|
|
|
Py_INCREF(&message_type);
|