diff options
| author | Manuel Traut <manut@mecka.net> | 2012-06-08 01:32:34 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-06-08 01:32:34 +0200 |
| commit | 76de3c5a53e5bb1e872d07d969a18ab1a2f294ff (patch) | |
| tree | 311e23cb947529ae04ce7a92b3ae63d6f877bbbd /common/distrio_helper.h | |
| parent | 47074177e4d6675918684fad34a6b5fe39c380e7 (diff) | |
libdistrio_common: return error, if lookup fails
- if requested io can't be found, a error code will be returned
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'common/distrio_helper.h')
| -rw-r--r-- | common/distrio_helper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/distrio_helper.h b/common/distrio_helper.h index f0ad95c..3ca6592 100644 --- a/common/distrio_helper.h +++ b/common/distrio_helper.h @@ -59,8 +59,8 @@ void get_digital_list (Distrio::Digital_list_var *dig_list); 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, +int lookup_digital (std::string _name, Distrio::Digital_list_var dig_list, Distrio::Digital **ptr); /** lookup a analog io by a common name at the manager */ -void lookup_analog (std::string _name, Distrio::Analog_list_var ana_list, +int lookup_analog (std::string _name, Distrio::Analog_list_var ana_list, Distrio::Analog **ptr); |
