summaryrefslogtreecommitdiffstats
path: root/branches/1.0/bindings/csharp/csharp.i
diff options
context:
space:
mode:
Diffstat (limited to 'branches/1.0/bindings/csharp/csharp.i')
-rw-r--r--branches/1.0/bindings/csharp/csharp.i53
1 files changed, 0 insertions, 53 deletions
diff --git a/branches/1.0/bindings/csharp/csharp.i b/branches/1.0/bindings/csharp/csharp.i
deleted file mode 100644
index dfbe47c..0000000
--- a/branches/1.0/bindings/csharp/csharp.i
+++ /dev/null
@@ -1,53 +0,0 @@
-/* File : csharp.i
-* http://www.swig.org/Doc1.3/CSharp.html
-*/
-
-
-%define %cs_marshal_array(TYPE, CSTYPE)
-%typemap(ctype) TYPE[] "void*"
-%typemap(imtype,
-inattributes="[MarshalAs(UnmanagedType.LPArray)]") TYPE[] "CSTYPE[]"
-%typemap(cstype) TYPE[] "CSTYPE[]"
-%typemap(in) TYPE[] %{ $1 = (TYPE*)$input; %}
-%typemap(csin) TYPE[] "$csinput"
-%enddef
-
-// Mapping void* as byte[]
-%typemap(ctype) void * "void *"
-%typemap(imtype) void * "byte[]"
-%typemap(cstype) void * "byte[]"
-%typemap(csin) void * "$csinput"
-%typemap(csout) void * { return $imcall; }
-%typemap(in) void * %{ $1 = $input; %}
-%typemap(out) void * %{ $result = $1; %}
-%typemap(csdirectorin) void * "$iminput"
-
-
-//======== SipMessage ========//
-%typemap(cscode) SipMessage %{
- public byte[] getSipContent() {
- uint clen = this.getSipContentLength();
- if(clen>0){
- byte[] bytes = new byte[clen];
- this.getSipContent(bytes, clen);
- return bytes;
- }
- return null;
- }
-%}
-
-
-//======= MediaContent ========//
-%typemap(cscode) MediaContent %{
- public byte[] getPayload() {
- uint clen = this.getPayloadLength();
- if(clen>0){
- byte[] bytes = new byte[clen];
- this.getPayload(bytes, clen);
- return bytes;
- }
- return null;
- }
-%}
-
-%include ../_common/tinyWRAP.i
OpenPOWER on IntegriCloud