aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-08-03 11:03:02 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-08-03 11:16:01 -0300
commitc7dd52ce9950f179415fcc39ca5899311a1737ad (patch)
tree318a14864414fc45621298f8b4c21d0f38c89f7f /tests
parentb7e7ac6f77e1128a16c5556baffd5e9b94df74c4 (diff)
Added custom code to VoidHolder.gimmeMeSomeVoidPointer().
The said method retuns a void pointer never before seen on the Python side. The code injection puts the void pointer in a BaseWrapper object. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/samplebinding/typesystem_sample.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 77e5052e..e949029e 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -1029,7 +1029,17 @@
</modify-function>
</value-type>
- <value-type name="VoidHolder"/>
+ <value-type name="VoidHolder">
+ <modify-function signature="gimmeMeSomeVoidPointer()">
+ <modify-argument index="return">
+ <replace-type modified-type="PyObject*"/>
+ </modify-argument>
+ <inject-code class="target" position="end">
+ %RETURN_TYPE %0 = %TYPE::%FUNCTION_NAME();
+ %PYARG_0 = SbkBaseWrapper_New(&amp;SbkBaseWrapper_Type, %0, false, false);
+ </inject-code>
+ </modify-function>
+ </value-type>
<object-type name="PrivateCtor" />
<object-type name="PrivateDtor" />