From 689ee8441533872e2212e38a50465f4168a8e2c3 Mon Sep 17 00:00:00 2001 From: "Meredith L. Patterson" Date: Tue, 19 Nov 2013 22:59:14 -0600 Subject: [PATCH] stubbed PHP typemaps --- src/bindings/swig/hammer.i | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/bindings/swig/hammer.i b/src/bindings/swig/hammer.i index 971b37f..4dc9668 100644 --- a/src/bindings/swig/hammer.i +++ b/src/bindings/swig/hammer.i @@ -1,4 +1,5 @@ %module hammer +%nodefaultctor; %nodefaultctor; @@ -132,6 +133,31 @@ #endif //%include "typemaps.i" + +#if defined(SWIGPHP) +%ignore HCountedArray_; +%typemap(in) uint8_t* { + + } +%typemap(out) uint8_t* { + + } +%typemap(in) void*[] { + + } +%typemap(in) uint8_t { + + } +%typemap(out) HBytes* { + + } +%typemap(out) struct HCountedArray_* { + + } +#else + #warning no Hammer typemaps defined +#endif + // All the include paths are relative to the build, i.e., ../../. If you need to build these manually (i.e., not with scons), keep that in mind. %{ #include "allocator.h" @@ -347,3 +373,4 @@ def int64(): return _h_int64() #endif //%apply const char* { const uint8_t* } +