diff options
Diffstat (limited to 'src/lib/dns/python/messagerenderer_python.cc')
-rw-r--r-- | src/lib/dns/python/messagerenderer_python.cc | 6 |
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); |