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
+2
View File
@@ -84,6 +84,8 @@ __EXPORT ssize_t px4_write(int fd, const void *buffer, size_t buflen);
__EXPORT int px4_ioctl(int fd, int cmd, unsigned long arg);
__EXPORT int px4_poll(px4_pollfd_struct_t *fds, nfds_t nfds, int timeout);
__EXPORT void px4_show_devices(void);
__EXPORT void px4_show_topics(void);
__EXPORT const char * px4_get_device_names(unsigned int *handle);
__EXPORT const char * px4_get_topic_names(unsigned int *handle);
__END_DECLS