diff options
| author | Ted Ross <tross@apache.org> | 2011-02-11 01:19:12 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2011-02-11 01:19:12 +0000 |
| commit | 0256258e435b9319d92251827c53d6495890020f (patch) | |
| tree | e7e17c593e4021bb05300ef6d22a82550e40e62d /qpid/cpp/bindings/qmf2/ruby | |
| parent | 93bfd4658c5715e122026f0bbd245eb362e74f7e (diff) | |
| download | qpid-python-0256258e435b9319d92251827c53d6495890020f.tar.gz | |
QPID-3046
Added missing wrapper functions for AgentSession::raiseEvent in Ruby and Python
Added a raised event in the Python agent example
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1069654 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf2/ruby')
| -rw-r--r-- | qpid/cpp/bindings/qmf2/ruby/qmf2.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qpid/cpp/bindings/qmf2/ruby/qmf2.rb b/qpid/cpp/bindings/qmf2/ruby/qmf2.rb index 6d1741ebc0..c14ecba4e1 100644 --- a/qpid/cpp/bindings/qmf2/ruby/qmf2.rb +++ b/qpid/cpp/bindings/qmf2/ruby/qmf2.rb @@ -433,6 +433,14 @@ module Qmf2 def del_data(addr) @impl.del_data(addr.impl) end + + def raise_event(data, severity=nil) + if !severity + @impl.raiseEvent(data.impl) + else + @impl.raiseEvent(data.impl, severity) + end + end end ##============================================================================== |
