BIND 10 trac1245, updated. af10f1ef696ee94f817bc389e0e8b6cd08234333 [1245] use forward decl in xxx_python.h where practical
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Sep 20 14:50:46 UTC 2011
The branch, trac1245 has been updated
via af10f1ef696ee94f817bc389e0e8b6cd08234333 (commit)
from 3eb0dedb8a5d9835b394484c6112a4b2fcbe9d51 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit af10f1ef696ee94f817bc389e0e8b6cd08234333
Author: Jelte Jansen <jelte at isc.org>
Date: Tue Sep 20 16:50:31 2011 +0200
[1245] use forward decl in xxx_python.h where practical
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/python/edns_python.h | 4 ++--
src/lib/dns/python/message_python.h | 4 ++--
src/lib/dns/python/messagerenderer_python.h | 3 ++-
src/lib/dns/python/name_python.h | 4 ++--
src/lib/dns/python/opcode_python.h | 4 ++--
src/lib/dns/python/pydnspp.cc | 3 +++
src/lib/dns/python/question_python.h | 4 ++--
src/lib/dns/python/rcode_python.h | 4 ++--
src/lib/dns/python/rrclass_python.h | 4 ++--
src/lib/dns/python/rrttl_python.h | 4 ++--
src/lib/dns/python/rrtype_python.h | 4 ++--
src/lib/dns/python/tsig_python.h | 4 ++--
src/lib/dns/python/tsigerror_python.h | 4 ++--
src/lib/dns/python/tsigkey_python.h | 5 +++--
src/lib/dns/python/tsigrecord_python.h | 5 +++--
15 files changed, 33 insertions(+), 27 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/python/edns_python.h b/src/lib/dns/python/edns_python.h
index 81869df..30d92ab 100644
--- a/src/lib/dns/python/edns_python.h
+++ b/src/lib/dns/python/edns_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/edns.h>
-
namespace isc {
namespace dns {
+class EDNS;
+
namespace python {
extern PyTypeObject edns_type;
diff --git a/src/lib/dns/python/message_python.h b/src/lib/dns/python/message_python.h
index 8ae3efc..be23890 100644
--- a/src/lib/dns/python/message_python.h
+++ b/src/lib/dns/python/message_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/message.h>
-
namespace isc {
namespace dns {
+class Message;
+
namespace python {
extern PyObject* po_MessageTooShort;
diff --git a/src/lib/dns/python/messagerenderer_python.h b/src/lib/dns/python/messagerenderer_python.h
index f68d57d..ea9a940 100644
--- a/src/lib/dns/python/messagerenderer_python.h
+++ b/src/lib/dns/python/messagerenderer_python.h
@@ -17,11 +17,12 @@
#include <Python.h>
-#include <dns/messagerenderer.h>
#include <util/buffer.h>
namespace isc {
namespace dns {
+class MessageRenderer;
+
namespace python {
extern PyTypeObject messagerenderer_type;
diff --git a/src/lib/dns/python/name_python.h b/src/lib/dns/python/name_python.h
index fdf6e4a..86d7fd0 100644
--- a/src/lib/dns/python/name_python.h
+++ b/src/lib/dns/python/name_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/name.h>
-
namespace isc {
namespace dns {
+class Name;
+
namespace python {
extern PyObject* po_EmptyLabel;
diff --git a/src/lib/dns/python/opcode_python.h b/src/lib/dns/python/opcode_python.h
index 7286588..d0aec15 100644
--- a/src/lib/dns/python/opcode_python.h
+++ b/src/lib/dns/python/opcode_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/opcode.h>
-
namespace isc {
namespace dns {
+class Opcode;
+
namespace python {
extern PyTypeObject opcode_type;
diff --git a/src/lib/dns/python/pydnspp.cc b/src/lib/dns/python/pydnspp.cc
index 8c23725..830876c 100644
--- a/src/lib/dns/python/pydnspp.cc
+++ b/src/lib/dns/python/pydnspp.cc
@@ -28,6 +28,9 @@
#include <Python.h>
#include <structmember.h>
+#include <dns/message.h>
+#include <dns/opcode.h>
+#include <dns/tsig.h>
#include <util/python/pycppwrapper_util.h>
#include "pydnspp_common.h"
diff --git a/src/lib/dns/python/question_python.h b/src/lib/dns/python/question_python.h
index 4e8b2ab..f5d78b1 100644
--- a/src/lib/dns/python/question_python.h
+++ b/src/lib/dns/python/question_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/question.h>
-
namespace isc {
namespace dns {
+class Question;
+
namespace python {
extern PyObject* po_EmptyQuestion;
diff --git a/src/lib/dns/python/rcode_python.h b/src/lib/dns/python/rcode_python.h
index a2de279..a149406 100644
--- a/src/lib/dns/python/rcode_python.h
+++ b/src/lib/dns/python/rcode_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/rcode.h>
-
namespace isc {
namespace dns {
+class Rcode;
+
namespace python {
extern PyTypeObject rcode_type;
diff --git a/src/lib/dns/python/rrclass_python.h b/src/lib/dns/python/rrclass_python.h
index dc84cdb..f58bba6 100644
--- a/src/lib/dns/python/rrclass_python.h
+++ b/src/lib/dns/python/rrclass_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/rrclass.h>
-
namespace isc {
namespace dns {
+class RRClass;
+
namespace python {
extern PyObject* po_InvalidRRClass;
diff --git a/src/lib/dns/python/rrttl_python.h b/src/lib/dns/python/rrttl_python.h
index f5bdb49..9dbc982 100644
--- a/src/lib/dns/python/rrttl_python.h
+++ b/src/lib/dns/python/rrttl_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/rrttl.h>
-
namespace isc {
namespace dns {
+class RRTTL;
+
namespace python {
extern PyObject* po_InvalidRRTTL;
diff --git a/src/lib/dns/python/rrtype_python.h b/src/lib/dns/python/rrtype_python.h
index a0a1b70..596598e 100644
--- a/src/lib/dns/python/rrtype_python.h
+++ b/src/lib/dns/python/rrtype_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/rrtype.h>
-
namespace isc {
namespace dns {
+class RRType;
+
namespace python {
extern PyObject* po_InvalidRRType;
diff --git a/src/lib/dns/python/tsig_python.h b/src/lib/dns/python/tsig_python.h
index b76002d..e4e9fff 100644
--- a/src/lib/dns/python/tsig_python.h
+++ b/src/lib/dns/python/tsig_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/tsig.h>
-
namespace isc {
namespace dns {
+class TSIGContext;
+
namespace python {
extern PyTypeObject tsigcontext_type;
diff --git a/src/lib/dns/python/tsigerror_python.h b/src/lib/dns/python/tsigerror_python.h
index 14391ff..0b5b630 100644
--- a/src/lib/dns/python/tsigerror_python.h
+++ b/src/lib/dns/python/tsigerror_python.h
@@ -17,10 +17,10 @@
#include <Python.h>
-#include <dns/tsigerror.h>
-
namespace isc {
namespace dns {
+class TSIGError;
+
namespace python {
extern PyTypeObject tsigerror_type;
diff --git a/src/lib/dns/python/tsigkey_python.h b/src/lib/dns/python/tsigkey_python.h
index 1807f54..6c3d2e3 100644
--- a/src/lib/dns/python/tsigkey_python.h
+++ b/src/lib/dns/python/tsigkey_python.h
@@ -17,10 +17,11 @@
#include <Python.h>
-#include <dns/tsigkey.h>
-
namespace isc {
namespace dns {
+class TSIGKey;
+class TSIGKeyRing;
+
namespace python {
extern PyTypeObject tsigkey_type;
diff --git a/src/lib/dns/python/tsigrecord_python.h b/src/lib/dns/python/tsigrecord_python.h
index 9b392c3..d6252e1 100644
--- a/src/lib/dns/python/tsigrecord_python.h
+++ b/src/lib/dns/python/tsigrecord_python.h
@@ -17,12 +17,13 @@
#include <Python.h>
-#include <dns/tsigrecord.h>
-
namespace isc {
namespace dns {
+class TSIGRecord;
+
namespace python {
+
extern PyTypeObject tsigrecord_type;
/// This is A simple shortcut to create a python TSIGRecord object (in the
More information about the bind10-changes
mailing list