summaryrefslogtreecommitdiff
path: root/cpp/bindings
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-08-31 20:18:48 +0000
committerTed Ross <tross@apache.org>2009-08-31 20:18:48 +0000
commit13b692aac42bc0e896a31c176daf79920a82ea5e (patch)
treea2b1b18ae6e3667afae4ce5f7d3331f7d9188057 /cpp/bindings
parenta7d34ad1929e3d63e5cab290090d60920dfdd32c (diff)
downloadqpid-python-13b692aac42bc0e896a31c176daf79920a82ea5e.tar.gz
Added protocol module for codepoint definitions and header handling.
Fixed a deadlock case in ResilientConnection. Added more code to the ConsoleEngine implementation. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@809728 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings')
-rw-r--r--cpp/bindings/qmf/ruby/qmf.rb3
-rwxr-xr-xcpp/bindings/qmf/tests/ruby_console.rb2
2 files changed, 3 insertions, 2 deletions
diff --git a/cpp/bindings/qmf/ruby/qmf.rb b/cpp/bindings/qmf/ruby/qmf.rb
index 38c42b5aa7..2df6e8646d 100644
--- a/cpp/bindings/qmf/ruby/qmf.rb
+++ b/cpp/bindings/qmf/ruby/qmf.rb
@@ -536,7 +536,7 @@ module Qmf
class Console
attr_reader :impl
- def initialize(handler, kwargs={})
+ def initialize(handler = nil, kwargs={})
@handler = handler
@impl = Qmfengine::ConsoleEngine.new
@event = Qmfengine::ConsoleEvent.new
@@ -587,6 +587,7 @@ module Qmf
valid = @impl.getEvent(@event)
while valid
count += 1
+ puts "Console Event: #{@event.kind}"
case @event.kind
when Qmfengine::ConsoleEvent::AGENT_ADDED
when Qmfengine::ConsoleEvent::AGENT_DELETED
diff --git a/cpp/bindings/qmf/tests/ruby_console.rb b/cpp/bindings/qmf/tests/ruby_console.rb
index c7ee9c3686..c59ec0334c 100755
--- a/cpp/bindings/qmf/tests/ruby_console.rb
+++ b/cpp/bindings/qmf/tests/ruby_console.rb
@@ -29,7 +29,7 @@ class App < Qmf::ConsoleHandler
@settings.set_attr("host", ARGV[0]) if ARGV.size > 0
@settings.set_attr("port", ARGV[1].to_i) if ARGV.size > 1
@connection = Qmf::Connection.new(@settings)
- @qmf = Qmf::Console.new(self)
+ @qmf = Qmf::Console.new
@qmf.add_connection(@connection)