summaryrefslogtreecommitdiff
path: root/Examples/php/disown/example.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/php/disown/example.i')
-rw-r--r--Examples/php/disown/example.i12
1 files changed, 12 insertions, 0 deletions
diff --git a/Examples/php/disown/example.i b/Examples/php/disown/example.i
new file mode 100644
index 000000000..599f162c5
--- /dev/null
+++ b/Examples/php/disown/example.i
@@ -0,0 +1,12 @@
+/* File : example.i */
+%module example
+
+%{
+#include "example.h"
+%}
+
+%apply SWIGTYPE *DISOWN {(Shape *s)};
+
+/* Let's just grab the original header file here */
+%include "example.h"
+