Mercurial > hg > freeDiameter
comparison extensions/dbg_interactive/routing.i @ 1217:3f7c74ef3787
Fix missing prototype change
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Thu, 20 Jun 2013 14:23:26 +0800 |
parents | 1af09cc156d6 |
children |
comparison
equal
deleted
inserted
replaced
1216:581bbd48524a | 1217:3f7c74ef3787 |
---|---|
176 } | 176 } |
177 | 177 |
178 | 178 |
179 %{ | 179 %{ |
180 /* call it (will be called from a different thread than the interpreter, when message arrives) */ | 180 /* call it (will be called from a different thread than the interpreter, when message arrives) */ |
181 static int call_the_python_rt_out_callback(void * pycb, struct msg *msg, struct fd_list * candidates) { | 181 static int call_the_python_rt_out_callback(void * pycb, struct msg **msg, struct fd_list * candidates) { |
182 PyObject *PyMsg, *PyCands; | 182 PyObject *PyMsg, *PyCands; |
183 PyObject *cb, *result = NULL; | 183 PyObject *cb, *result = NULL; |
184 int ret = 0; | 184 int ret = 0; |
185 | 185 |
186 if (!pycb) { | 186 if (!pycb) { |
189 } | 189 } |
190 cb = pycb; | 190 cb = pycb; |
191 | 191 |
192 SWIG_PYTHON_THREAD_BEGIN_BLOCK; | 192 SWIG_PYTHON_THREAD_BEGIN_BLOCK; |
193 /* Convert the arguments */ | 193 /* Convert the arguments */ |
194 PyMsg = SWIG_NewPointerObj((void *)msg, SWIGTYPE_p_msg, 0 ); | 194 PyMsg = SWIG_NewPointerObj((void *)*msg, SWIGTYPE_p_msg, 0 ); |
195 PyCands = SWIG_NewPointerObj((void *)candidates, SWIGTYPE_p_fd_list, 0 ); | 195 PyCands = SWIG_NewPointerObj((void *)candidates, SWIGTYPE_p_fd_list, 0 ); |
196 | 196 |
197 /* Call the function */ | 197 /* Call the function */ |
198 result = PyObject_CallFunction(cb, "(OO)", PyMsg, PyCands); | 198 result = PyObject_CallFunction(cb, "(OO)", PyMsg, PyCands); |
199 | 199 |