From 8f2ec041aafd8504c54f60ddc2ef1b0908dd7630 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 8 Jun 2012 00:26:15 +0200 Subject: libdistrio_common: add helper for all lists - get_list - lookup_* Signed-off-by: Manuel Traut --- common/distrio_helper.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'common/distrio_helper.h') diff --git a/common/distrio_helper.h b/common/distrio_helper.h index b4d2d55..0a571db 100644 --- a/common/distrio_helper.h +++ b/common/distrio_helper.h @@ -41,13 +41,24 @@ static corba_ref ref = { /** initialize corba orb - argc, argv as passed to main() */ int init_corba (int argc, char **argv); +/** run the orb - function starts orb in new thread and returns */ +int run_orb (void); + /** register a digital io with a common name at the naming service */ int register_digital (Distrio_Digital_i *digital); -/** lookup a digital io by a common name at the manager */ +/** register a analog io with a common name at the naming service */ +int register_analog (Distrio_Analog_i *analog); +/** register a device with a common name at the naming service */ +int register_device (Distrio_Device_i *dev); + +/* returns a list of all registered digital ios */ void get_digital_list (Distrio::Digital_list_var *dig_list); +/* returns a list of all registered analog ios */ +void get_analog_list (Distrio::Analog_list_var *ana_list); + +/** lookup a digital io by a common name at the manager */ void lookup_digital (std::string _name, Distrio::Digital_list_var dig_list, Distrio::Digital **ptr); -/** register a device with a common name at the naming service */ -int register_device (std::string _name, Distrio_Device_i *dev); -/** run the orb - function blocks until orb shutdown */ -int run_orb (void); +/** lookup a analog io by a common name at the manager */ +void lookup_analog (std::string _name, Distrio::Analog_list_var ana_list, + Distrio::Analog **ptr); -- cgit v1.2.3