From f2db05538933b31cd81bbf6021760de28f4ecea8 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 11 Aug 2009 15:27:08 +0000 Subject: Cleaned up the makefiles in the QMF bindings area. Added tests for the QMF bindings. Removed spurious "cout" prints from qmf/Agent.cpp git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@803156 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/bindings/qmf/ruby/ruby.i | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'qpid/cpp/bindings/qmf/ruby/ruby.i') diff --git a/qpid/cpp/bindings/qmf/ruby/ruby.i b/qpid/cpp/bindings/qmf/ruby/ruby.i index 76f8a18dcf..cf69e2863a 100644 --- a/qpid/cpp/bindings/qmf/ruby/ruby.i +++ b/qpid/cpp/bindings/qmf/ruby/ruby.i @@ -18,7 +18,6 @@ */ %include stl.i -%trackobjects; %module qmfengine @@ -32,9 +31,19 @@ $result = (VALUE) $1; } +%typemap (in) uint16_t +{ + $1 = FIX2UINT ($input); +} + +%typemap (out) uint16_t +{ + $result = UINT2NUM((unsigned short) $1); +} + %typemap (in) uint32_t { - $1 = FIX2UINT ((uint32_t) $input); + $1 = FIX2UINT ($input); } %typemap (out) uint32_t @@ -48,7 +57,7 @@ %typemap (in) uint64_t { - $1 = FIX2ULONG ((uint64_t) $input); + $1 = FIX2ULONG ($input); } %typemap (out) uint64_t -- cgit v1.2.1