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-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);
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
struct udev_list_entry * uDEV_list_entry_get_next(struct udev_list_entry *list_entry)
Definition: xsudev.h:27
uDEV_device_new_from_syspath * device_new_from_syspath
Definition: xsudev.h:78
uDEV_device_unref * device_unref
Definition: xsudev.h:70
uDEV_enumerate_get_list_entry * enumerate_get_list_entry
Definition: xsudev.h:74
uDEV_list_entry_get_next * list_entry_get_next
Definition: xsudev.h:76
const char * uDEV_list_entry_get_name(struct udev_list_entry *list_entry)
Definition: xsudev.h:29
const char * uDEV_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr)
Definition: xsudev.h:39
uDEV_enumerate_add_match_subsystem enumerate_add_match_subsystem
Definition: xsudev.h:52
uDEV_unref * unref
Definition: xsudev.h:69
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_unref device_unref
Definition: xsudev.h:50
uDEV_enumerate_get_list_entry enumerate_get_list_entry
Definition: xsudev.h:54
uDEV_device_get_parent device_get_parent
Definition: xsudev.h:59
struct udev_device * uDEV_device_new_from_syspath(struct udev *udev, const char *syspath)
Definition: xsudev.h:31
XsLibraryLoader * m_libraryLoader
Definition: xsudev.h:87
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:33
uDEV_unref unref
Definition: xsudev.h:49
uDEV_new * unew
Definition: xsudev.h:68
The Xsens dynamic library loader base class.
uDEV_list_entry_get_name * list_entry_get_name
Definition: xsudev.h:77
uDEV_device_get_parent_with_subsystem_devtype device_get_parent_with_subsystem_devtype
Definition: xsudev.h:62
uDEV_device_get_sysattr_value device_get_sysattr_value
Definition: xsudev.h:63
uDEV_list_entry_get_next list_entry_get_next
Definition: xsudev.h:56
uDEV_enumerate_scan_devices * enumerate_scan_devices
Definition: xsudev.h:73
struct udev_enumerate * uDEV_enumerate_new(struct udev *udev)
Definition: xsudev.h:19
uDEV_device_get_parent_with_subsystem_devtype * device_get_parent_with_subsystem_devtype
Definition: xsudev.h:81
const char * uDEV_device_get_devnode(struct udev_device *udev_device)
Definition: xsudev.h:35
struct udev_list_entry * uDEV_enumerate_get_list_entry(struct udev_enumerate *udev_enumerate)
Definition: xsudev.h:23
struct udev_device * uDEV_device_unref(struct udev_device *udev_device)
Definition: xsudev.h:18
UDEV_API m_uDev
Definition: xsudev.h:86
int uDEV_enumerate_scan_devices(struct udev_enumerate *udev_enumerate)
Definition: xsudev.h:22
uDEV_device_get_sysattr_value * device_get_sysattr_value
Definition: xsudev.h:83
uDEV_enumerate_new enumerate_new
Definition: xsudev.h:51
uDEV_enumerate_unref * enumerate_unref
Definition: xsudev.h:75
uDEV_device_get_parent * device_get_parent
Definition: xsudev.h:79
void initLibrary()
struct udev_enumerate * uDEV_enumerate_unref(struct udev_enumerate *udev_enumerate)
Definition: xsudev.h:25
Definition: xsudev.h:42
XsUdev(void)
struct udev * uDEV_new(void)
Definition: xsudev.h:16
uDEV_device_get_devnode device_get_devnode
Definition: xsudev.h:60
uDEV_device_get_devnode * device_get_devnode
Definition: xsudev.h:80
uDEV_enumerate_add_match_subsystem * enumerate_add_match_subsystem
Definition: xsudev.h:72
uDEV_device_new_from_syspath device_new_from_syspath
Definition: xsudev.h:58
uDEV_enumerate_unref enumerate_unref
Definition: xsudev.h:55
uDEV_enumerate_new * enumerate_new
Definition: xsudev.h:71
uDEV_enumerate_scan_devices enumerate_scan_devices
Definition: xsudev.h:53
struct XsUdev::_UDEV_API UDEV_API
uDEV_list_entry_get_name list_entry_get_name
Definition: xsudev.h:57
~XsUdev(void)
struct udev * uDEV_unref(struct udev *udev)
Definition: xsudev.h:17
uDEV_new unew
Definition: xsudev.h:48



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019