diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-01-08 17:39:03 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-01-08 17:39:03 +0000 |
commit | b9c51083302aa66a840d9a6f176671ad5f37dadd (patch) | |
tree | 02e1f15cad1e539c2cacbf692ffae0cd40029ebf /rb/src/IceRuby/Communicator.cpp | |
parent | - Fixing bug 800. (diff) | |
download | ice-b9c51083302aa66a840d9a6f176671ad5f37dadd.tar.bz2 ice-b9c51083302aa66a840d9a6f176671ad5f37dadd.tar.xz ice-b9c51083302aa66a840d9a6f176671ad5f37dadd.zip |
Added Communicator::isShutdown() and ObjectAdapter::isDeactivated()
Diffstat (limited to 'rb/src/IceRuby/Communicator.cpp')
-rw-r--r-- | rb/src/IceRuby/Communicator.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rb/src/IceRuby/Communicator.cpp b/rb/src/IceRuby/Communicator.cpp index e967deb5152..ab92738934c 100644 --- a/rb/src/IceRuby/Communicator.cpp +++ b/rb/src/IceRuby/Communicator.cpp @@ -236,6 +236,19 @@ IceRuby_Communicator_shutdown(VALUE self) extern "C" VALUE +IceRuby_Communicator_isShutdown(VALUE self) +{ + ICE_RUBY_TRY + { + Ice::CommunicatorPtr p = getCommunicator(self); + p->isShutdown(); + } + ICE_RUBY_CATCH + return Qnil; +} + +extern "C" +VALUE IceRuby_Communicator_stringToProxy(VALUE self, VALUE str) { ICE_RUBY_TRY @@ -528,6 +541,7 @@ IceRuby::initCommunicator(VALUE iceModule) _communicatorClass = rb_define_class_under(iceModule, "CommunicatorI", rb_cObject); rb_define_method(_communicatorClass, "destroy", CAST_METHOD(IceRuby_Communicator_destroy), 0); rb_define_method(_communicatorClass, "shutdown", CAST_METHOD(IceRuby_Communicator_shutdown), 0); + rb_define_method(_communicatorClass, "isShutdown", CAST_METHOD(IceRuby_Communicator_isShutdown), 0); rb_define_method(_communicatorClass, "stringToProxy", CAST_METHOD(IceRuby_Communicator_stringToProxy), 1); rb_define_method(_communicatorClass, "proxyToString", CAST_METHOD(IceRuby_Communicator_proxyToString), 1); rb_define_method(_communicatorClass, "propertyToProxy", CAST_METHOD(IceRuby_Communicator_propertyToProxy), 1); |