summaryrefslogtreecommitdiff
path: root/cpp/bindings/qmf/ruby
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-08-11 15:27:08 +0000
committerTed Ross <tross@apache.org>2009-08-11 15:27:08 +0000
commite9256dc65a9f9a05e0f802039a6569f8f6824930 (patch)
tree363ed5b1271af49faae9fd5a6c2ecc1325c304f3 /cpp/bindings/qmf/ruby
parentba9a0311f80e2d65711f490534a2a3d1854637ee (diff)
downloadqpid-python-e9256dc65a9f9a05e0f802039a6569f8f6824930.tar.gz
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/qpid@803156 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qmf/ruby')
-rw-r--r--cpp/bindings/qmf/ruby/qmf.rb1
-rw-r--r--cpp/bindings/qmf/ruby/ruby.i15
2 files changed, 12 insertions, 4 deletions
diff --git a/cpp/bindings/qmf/ruby/qmf.rb b/cpp/bindings/qmf/ruby/qmf.rb
index fd4f09977a..ea6b16f636 100644
--- a/cpp/bindings/qmf/ruby/qmf.rb
+++ b/cpp/bindings/qmf/ruby/qmf.rb
@@ -172,7 +172,6 @@ module Qmf
@by_hash[@map.key(a)] = by_key(@map.key(a))
a += 1
end
-
end
def [] (key)
diff --git a/cpp/bindings/qmf/ruby/ruby.i b/cpp/bindings/qmf/ruby/ruby.i
index 76f8a18dcf..cf69e2863a 100644
--- a/cpp/bindings/qmf/ruby/ruby.i
+++ b/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