Main MRPT website > C++ reference for MRPT 1.5.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-2017, 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);
20 typedef int uDEV_enumerate_add_match_subsystem(struct udev_enumerate *udev_enumerate, const char *subsystem);
21 typedef int uDEV_enumerate_scan_devices(struct udev_enumerate *udev_enumerate);
22 typedef struct udev_list_entry *uDEV_enumerate_get_list_entry(struct udev_enumerate *udev_enumerate);
23 typedef struct udev_enumerate *uDEV_enumerate_unref(struct udev_enumerate *udev_enumerate);
24 typedef struct udev_list_entry *uDEV_list_entry_get_next(struct udev_list_entry *list_entry);
25 typedef const char *uDEV_list_entry_get_name(struct udev_list_entry *list_entry);
26 typedef struct udev_device *uDEV_device_new_from_syspath(struct udev *udev, const char *syspath);
27 typedef struct udev_device *uDEV_device_get_parent(struct udev_device *udev_device);
28 typedef const char *uDEV_device_get_devnode(struct udev_device *udev_device);
29 typedef struct udev_device *uDEV_device_get_parent_with_subsystem_devtype(struct udev_device *udev_device, const char *subsystem, const char *devtype);
30 typedef const char *uDEV_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr);
31 
32 class XsUdev
33 {
34 public:
35  XsUdev(void);
36  ~XsUdev(void);
37 
53 
54 private:
55 
56  typedef struct _UDEV_API
57  {
73  } UDEV_API;
74 
77 
78  void initLibrary();
79 };
80 
81 #endif // file guard
82 
struct udev_list_entry * uDEV_list_entry_get_next(struct udev_list_entry *list_entry)
Definition: xsudev.h:24
uDEV_device_new_from_syspath * device_new_from_syspath
Definition: xsudev.h:68
uDEV_device_unref * device_unref
Definition: xsudev.h:60
uDEV_enumerate_get_list_entry * enumerate_get_list_entry
Definition: xsudev.h:64
uDEV_list_entry_get_next * list_entry_get_next
Definition: xsudev.h:66
const char * uDEV_list_entry_get_name(struct udev_list_entry *list_entry)
Definition: xsudev.h:25
const char * uDEV_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr)
Definition: xsudev.h:30
uDEV_enumerate_add_match_subsystem enumerate_add_match_subsystem
Definition: xsudev.h:42
uDEV_unref * unref
Definition: xsudev.h:59
struct udev_device * uDEV_device_get_parent_with_subsystem_devtype(struct udev_device *udev_device, const char *subsystem, const char *devtype)
Definition: xsudev.h:29
uDEV_device_unref device_unref
Definition: xsudev.h:40
uDEV_enumerate_get_list_entry enumerate_get_list_entry
Definition: xsudev.h:44
uDEV_device_get_parent device_get_parent
Definition: xsudev.h:49
struct udev_device * uDEV_device_new_from_syspath(struct udev *udev, const char *syspath)
Definition: xsudev.h:26
XsLibraryLoader * m_libraryLoader
Definition: xsudev.h:76
int uDEV_enumerate_add_match_subsystem(struct udev_enumerate *udev_enumerate, const char *subsystem)
Definition: xsudev.h:20
struct udev_device * uDEV_device_get_parent(struct udev_device *udev_device)
Definition: xsudev.h:27
uDEV_unref unref
Definition: xsudev.h:39
uDEV_new * unew
Definition: xsudev.h:58
The Xsens dynamic library loader base class.
uDEV_list_entry_get_name * list_entry_get_name
Definition: xsudev.h:67
uDEV_device_get_parent_with_subsystem_devtype device_get_parent_with_subsystem_devtype
Definition: xsudev.h:51
uDEV_device_get_sysattr_value device_get_sysattr_value
Definition: xsudev.h:52
uDEV_list_entry_get_next list_entry_get_next
Definition: xsudev.h:46
uDEV_enumerate_scan_devices * enumerate_scan_devices
Definition: xsudev.h:63
struct udev_enumerate * uDEV_enumerate_new(struct udev *udev)
Definition: xsudev.h:19
const char * uDEV_device_get_devnode(struct udev_device *udev_device)
Definition: xsudev.h:28
struct udev_list_entry * uDEV_enumerate_get_list_entry(struct udev_enumerate *udev_enumerate)
Definition: xsudev.h:22
struct udev_device * uDEV_device_unref(struct udev_device *udev_device)
Definition: xsudev.h:18
UDEV_API m_uDev
Definition: xsudev.h:75
int uDEV_enumerate_scan_devices(struct udev_enumerate *udev_enumerate)
Definition: xsudev.h:21
uDEV_device_get_parent_with_subsystem_devtype * device_get_parent_with_subsystem_devtype
Definition: xsudev.h:71
uDEV_device_get_sysattr_value * device_get_sysattr_value
Definition: xsudev.h:72
uDEV_enumerate_new enumerate_new
Definition: xsudev.h:41
uDEV_enumerate_unref * enumerate_unref
Definition: xsudev.h:65
uDEV_device_get_parent * device_get_parent
Definition: xsudev.h:69
void initLibrary()
struct udev_enumerate * uDEV_enumerate_unref(struct udev_enumerate *udev_enumerate)
Definition: xsudev.h:23
Definition: xsudev.h:32
XsUdev(void)
struct udev * uDEV_new(void)
Definition: xsudev.h:16
uDEV_device_get_devnode device_get_devnode
Definition: xsudev.h:50
uDEV_device_get_devnode * device_get_devnode
Definition: xsudev.h:70
uDEV_enumerate_add_match_subsystem * enumerate_add_match_subsystem
Definition: xsudev.h:62
uDEV_device_new_from_syspath device_new_from_syspath
Definition: xsudev.h:48
uDEV_enumerate_unref enumerate_unref
Definition: xsudev.h:45
uDEV_enumerate_new * enumerate_new
Definition: xsudev.h:61
uDEV_enumerate_scan_devices enumerate_scan_devices
Definition: xsudev.h:43
struct XsUdev::_UDEV_API UDEV_API
uDEV_list_entry_get_name list_entry_get_name
Definition: xsudev.h:47
~XsUdev(void)
struct udev * uDEV_unref(struct udev *udev)
Definition: xsudev.h:17
uDEV_new unew
Definition: xsudev.h:38



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020