summaryrefslogtreecommitdiff
path: root/common/distrio_helper.h
diff options
context:
space:
mode:
authorManuel Traut <manut@mecka.net>2012-06-08 00:26:15 +0200
committerManuel Traut <manut@mecka.net>2012-06-08 00:26:15 +0200
commit8f2ec041aafd8504c54f60ddc2ef1b0908dd7630 (patch)
treefb873037b3d78169f29b5a240d79b2dde6824300 /common/distrio_helper.h
parent297e389057b702bbeb99139a8c248cfccfc0724e (diff)
libdistrio_common: add helper for all lists
- get_list - lookup_* Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'common/distrio_helper.h')
-rw-r--r--common/distrio_helper.h21
1 files changed, 16 insertions, 5 deletions
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);