summaryrefslogtreecommitdiff
path: root/qpid/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
commitf2db05538933b31cd81bbf6021760de28f4ecea8 (patch)
treeae3b7476d067b392878e02f2159290f31eaa76c6 /qpid/cpp/bindings/qmf/ruby
parente211cfe033e2c6653b30f3f485cc0084063bfb2a (diff)
downloadqpid-python-f2db05538933b31cd81bbf6021760de28f4ecea8.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@803156 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf/ruby')
-rw-r--r--qpid/cpp/bindings/qmf/ruby/qmf.rb1
-rw-r--r--qpid/cpp/bindings/qmf/ruby/ruby.i15
2 files changed, 12 insertions, 4 deletions
diff --git a/qpid/cpp/bindings/qmf/ruby/qmf.rb b/qpid/cpp/bindings/qmf/ruby/qmf.rb
index fd4f09977a..ea6b16f636 100644
--- a/qpid/cpp/bindings/qmf/ruby/qmf.rb
+++ b/qpid/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/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