Main MRPT website > C++ reference for MRPT 1.9.9
xsudev.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef XSUDEV
10 #define XSUDEV
11 
12 #include <libudev.h>
13 
14 struct XsLibraryLoader;
15 
16 typedef struct udev* uDEV_new(void);
17 typedef struct udev* uDEV_unref(struct udev* udev);
18 typedef struct udev_device* uDEV_device_unref(struct udev_device* udev_device);
19 typedef struct udev_enumerate* uDEV_enumerate_new(struct udev* udev);
21  struct udev_enumerate* udev_enumerate, const char* subsystem);
22 typedef int uDEV_enumerate_scan_devices(struct udev_enumerate* udev_enumerate);
23 typedef struct udev_list_entry* uDEV_enumerate_get_list_entry(
24  struct udev_enumerate* udev_enumerate);
25 typedef struct udev_enumerate* uDEV_enumerate_unref(
26  struct udev_enumerate* udev_enumerate);
27 typedef struct udev_list_entry* uDEV_list_entry_get_next(
28  struct udev_list_entry* list_entry);
29 typedef const char* uDEV_list_entry_get_name(
30  struct udev_list_entry* list_entry);
31 typedef struct udev_device* uDEV_device_new_from_syspath(
32  struct udev* udev, const char* syspath);
33 typedef struct udev_device* uDEV_device_get_parent(
34  struct udev_device* udev_device);
35 typedef const char* uDEV_device_get_devnode(struct udev_device* udev_device);
37  struct udev_device* udev_device, const char* subsystem,
38  const char* devtype);
39 typedef const char* uDEV_device_get_sysattr_value(
40  struct udev_device* udev_device, const char* sysattr);
41 
42 class XsUdev
43 {
44  public:
45  XsUdev(void);
46  ~XsUdev(void);
47 
64 
65  private:
66  typedef struct _UDEV_API
67  {
84  } UDEV_API;
85 
88 
89  void initLibrary();
90 };
91 
92 #endif // file guard
uDEV_device_get_parent_with_subsystem_devtype
struct udev_device * uDEV_device_get_parent_with_subsystem_devtype(struct udev_device *udev_device, const char *subsystem, const char *devtype)
Definition: xsudev.h:36
uDEV_device_get_devnode
const typedef char * uDEV_device_get_devnode(struct udev_device *udev_device)
XsUdev::~XsUdev
~XsUdev(void)
uDEV_new
struct udev * uDEV_new(void)
Definition: xsudev.h:16
uDEV_enumerate_unref
struct udev_enumerate * uDEV_enumerate_unref(struct udev_enumerate *udev_enumerate)
Definition: xsudev.h:25
XsUdev::device_get_parent
uDEV_device_get_parent device_get_parent
Definition: xsudev.h:59
uDEV_enumerate_scan_devices
int uDEV_enumerate_scan_devices(struct udev_enumerate *udev_enumerate)
Definition: xsudev.h:22
XsUdev::unew
uDEV_new unew
Definition: xsudev.h:48
XsUdev::device_unref
uDEV_device_unref device_unref
Definition: xsudev.h:50
uDEV_device_new_from_syspath
struct udev_device * uDEV_device_new_from_syspath(struct udev *udev, const char *syspath)
Definition: xsudev.h:31
XsUdev::enumerate_unref
uDEV_enumerate_unref enumerate_unref
Definition: xsudev.h:55
XsUdev::_UDEV_API::list_entry_get_name
uDEV_list_entry_get_name * list_entry_get_name
Definition: xsudev.h:77
uDEV_device_get_sysattr_value
const typedef char * uDEV_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr)
XsUdev::_UDEV_API::enumerate_add_match_subsystem
uDEV_enumerate_add_match_subsystem * enumerate_add_match_subsystem
Definition: xsudev.h:72
XsUdev::enumerate_add_match_subsystem
uDEV_enumerate_add_match_subsystem enumerate_add_match_subsystem
Definition: xsudev.h:52
XsUdev
Definition: xsudev.h:42
XsUdev::unref
uDEV_unref unref
Definition: xsudev.h:49
XsUdev::device_get_parent_with_subsystem_devtype
uDEV_device_get_parent_with_subsystem_devtype device_get_parent_with_subsystem_devtype
Definition: xsudev.h:62
XsUdev::_UDEV_API::list_entry_get_next
uDEV_list_entry_get_next * list_entry_get_next
Definition: xsudev.h:76
XsUdev::enumerate_new
uDEV_enumerate_new enumerate_new
Definition: xsudev.h:51
XsUdev::enumerate_get_list_entry
uDEV_enumerate_get_list_entry enumerate_get_list_entry
Definition: xsudev.h:54
XsUdev::_UDEV_API::enumerate_get_list_entry
uDEV_enumerate_get_list_entry * enumerate_get_list_entry
Definition: xsudev.h:74
uDEV_list_entry_get_next
struct udev_list_entry * uDEV_list_entry_get_next(struct udev_list_entry *list_entry)
Definition: xsudev.h:27
uDEV_unref
struct udev * uDEV_unref(struct udev *udev)
Definition: xsudev.h:17
XsUdev::_UDEV_API::device_get_parent
uDEV_device_get_parent * device_get_parent
Definition: xsudev.h:79
XsUdev::list_entry_get_next
uDEV_list_entry_get_next list_entry_get_next
Definition: xsudev.h:56
uDEV_list_entry_get_name
const typedef char * uDEV_list_entry_get_name(struct udev_list_entry *list_entry)
XsUdev::_UDEV_API
Definition: xsudev.h:66
XsUdev::_UDEV_API::device_new_from_syspath
uDEV_device_new_from_syspath * device_new_from_syspath
Definition: xsudev.h:78
XsUdev::m_libraryLoader
XsLibraryLoader * m_libraryLoader
Definition: xsudev.h:87
XsUdev::UDEV_API
struct XsUdev::_UDEV_API UDEV_API
XsUdev::device_get_sysattr_value
uDEV_device_get_sysattr_value device_get_sysattr_value
Definition: xsudev.h:63
XsUdev::device_get_devnode
uDEV_device_get_devnode device_get_devnode
Definition: xsudev.h:60
XsUdev::_UDEV_API::device_get_sysattr_value
uDEV_device_get_sysattr_value * device_get_sysattr_value
Definition: xsudev.h:83
XsUdev::_UDEV_API::enumerate_unref
uDEV_enumerate_unref * enumerate_unref
Definition: xsudev.h:75
XsUdev::XsUdev
XsUdev(void)
XsUdev::initLibrary
void initLibrary()
XsUdev::m_uDev
UDEV_API m_uDev
Definition: xsudev.h:86
XsUdev::_UDEV_API::enumerate_scan_devices
uDEV_enumerate_scan_devices * enumerate_scan_devices
Definition: xsudev.h:73
XsUdev::_UDEV_API::unref
uDEV_unref * unref
Definition: xsudev.h:69
uDEV_enumerate_new
struct udev_enumerate * uDEV_enumerate_new(struct udev *udev)
Definition: xsudev.h:19
XsLibraryLoader
The Xsens dynamic library loader base class.
Definition: xslibraryloader.h:41
uDEV_enumerate_get_list_entry
struct udev_list_entry * uDEV_enumerate_get_list_entry(struct udev_enumerate *udev_enumerate)
Definition: xsudev.h:23
XsUdev::_UDEV_API::device_get_parent_with_subsystem_devtype
uDEV_device_get_parent_with_subsystem_devtype * device_get_parent_with_subsystem_devtype
Definition: xsudev.h:81
XsUdev::enumerate_scan_devices
uDEV_enumerate_scan_devices enumerate_scan_devices
Definition: xsudev.h:53
XsUdev::_UDEV_API::device_unref
uDEV_device_unref * device_unref
Definition: xsudev.h:70
uDEV_device_get_parent
struct udev_device * uDEV_device_get_parent(struct udev_device *udev_device)
Definition: xsudev.h:33
XsUdev::_UDEV_API::device_get_devnode
uDEV_device_get_devnode * device_get_devnode
Definition: xsudev.h:80
XsUdev::_UDEV_API::enumerate_new
uDEV_enumerate_new * enumerate_new
Definition: xsudev.h:71
XsUdev::_UDEV_API::unew
uDEV_new * unew
Definition: xsudev.h:68
uDEV_enumerate_add_match_subsystem
int uDEV_enumerate_add_match_subsystem(struct udev_enumerate *udev_enumerate, const char *subsystem)
Definition: xsudev.h:20
uDEV_device_unref
struct udev_device * uDEV_device_unref(struct udev_device *udev_device)
Definition: xsudev.h:18
XsUdev::list_entry_get_name
uDEV_list_entry_get_name list_entry_get_name
Definition: xsudev.h:57
XsUdev::device_new_from_syspath
uDEV_device_new_from_syspath device_new_from_syspath
Definition: xsudev.h:58



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST