summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/python/messagerenderer_python.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dns/python/messagerenderer_python.cc')
-rw-r--r--src/lib/dns/python/messagerenderer_python.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dns/python/messagerenderer_python.cc b/src/lib/dns/python/messagerenderer_python.cc
index 846a9a96e4..b5be09a171 100644
--- a/src/lib/dns/python/messagerenderer_python.cc
+++ b/src/lib/dns/python/messagerenderer_python.cc
@@ -26,11 +26,11 @@ using namespace isc::dns;
// since we don't use *Buffer in the python version (but work with
// the already existing bytearray type where we use these custom buffers
// in c++, we need to keep track of one here.
-typedef struct {
- PyObject_HEAD
+class s_MessageRenderer : public PyObject {
+public:
OutputBuffer* outputbuffer;
MessageRenderer* messagerenderer;
-} s_MessageRenderer;
+};
static int MessageRenderer_init(s_MessageRenderer* self);
static void MessageRenderer_destroy(s_MessageRenderer* self);