summaryrefslogtreecommitdiffstats
path: root/bindings/perl/perl.i
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/perl/perl.i')
-rw-r--r--bindings/perl/perl.i7
1 files changed, 7 insertions, 0 deletions
diff --git a/bindings/perl/perl.i b/bindings/perl/perl.i
new file mode 100644
index 0000000..12a9d06
--- /dev/null
+++ b/bindings/perl/perl.i
@@ -0,0 +1,7 @@
+/* File : perl.i */
+
+/* http://www.swig.org/Doc1.3/Library.html#Library_carrays
+* 8.3.2 Passing binary data */
+%apply (char *STRING, int LENGTH) { (const void* buffer, int len) };
+
+%include ../_common/tinyWRAP.i
OpenPOWER on IntegriCloud