Linux: added builtins to show devices and topics

list_devices will list virtual devices starting with "/dev/".
list_topics will list topics ("/obj/")

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-20 11:37:50 -07:00
parent 694427e4ba
commit d2f0572ce6
7 changed files with 43 additions and 746 deletions
+10
View File
@@ -274,10 +274,20 @@ void px4_show_devices()
VDev::showDevices();
}
void px4_show_topics()
{
VDev::showTopics();
}
const char * px4_get_device_names(unsigned int *handle)
{
return VDev::devList(handle);
}
const char * px4_get_topic_names(unsigned int *handle)
{
return VDev::topicList(handle);
}
}