From 4353cffbf63fd1a682d3ad673f114da3bbbcb627 Mon Sep 17 00:00:00 2001 From: Jelte Jansen Date: Wed, 23 Jun 2010 11:28:49 +0000 Subject: changed our type-specific structs to classes derived from PyObject, so we can use static_cast instead of interpret_cast git-svn-id: svn://bind10.isc.org/svn/bind10/experiments/python-binding@2239 e5f2f494-b856-4b98-b285-d166d9295462 --- src/lib/dns/python/messagerenderer_python.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/dns/python/messagerenderer_python.cc') 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); -- cgit v1.2.3