stubbed PHP typemaps
This commit is contained in:
parent
632aa845a5
commit
689ee84415
1 changed files with 27 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
%module hammer
|
%module hammer
|
||||||
|
%nodefaultctor;
|
||||||
|
|
||||||
%nodefaultctor;
|
%nodefaultctor;
|
||||||
|
|
||||||
|
|
@ -132,6 +133,31 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//%include "typemaps.i"
|
//%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.
|
// 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"
|
#include "allocator.h"
|
||||||
|
|
@ -347,3 +373,4 @@ def int64(): return _h_int64()
|
||||||
#endif
|
#endif
|
||||||
//%apply const char* { const uint8_t* }
|
//%apply const char* { const uint8_t* }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue