mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 12:43:34 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user