diff options
| author | Manuel Traut <manut@mecka.net> | 2012-06-03 14:26:22 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-06-03 14:26:22 +0200 |
| commit | 28abd6b736714c0b4cf494408e8408680b48d379 (patch) | |
| tree | 41889e135e8e2a889ae20ef3c35a4319778373c1 | |
| parent | db9dc73fb458638973a458ba76a2d7f159c96c4d (diff) | |
libdistrio_common: register digital with kind digital_io
at the naming service
Signed-off-by: Manuel Traut <manut@mecka.net>
| -rw-r--r-- | common/distrio_helper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/distrio_helper.cpp b/common/distrio_helper.cpp index 5b368e7..458395b 100644 --- a/common/distrio_helper.cpp +++ b/common/distrio_helper.cpp @@ -55,10 +55,9 @@ int register_digital (char *_name, Distrio_Digital_i *digital) try { oid = ref.poa->activate_object (digital); obj = digital->_this (); - - /* TODO: find out how to build a tree @ the nameservice "distrio/manager" */ name.length (1); name[0].id = CORBA::string_dup (_name); + name[0].kind = CORBA::string_dup ("digital_io"); ref.nc->rebind (name, obj.in ()); } catch (CORBA::Exception &e) { std::cerr << "CORBA initialization failed: " << e << std::endl; |
