-
Notifications
You must be signed in to change notification settings - Fork 9
/
libudev0.c
55 lines (47 loc) · 1006 Bytes
/
libudev0.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include <stdlib.h>
#include <errno.h>
#define _unused_ __attribute__((unused))
#define _public_ __attribute__ ((visibility("default")))
struct udev;
struct udev_queue;
_public_
const char *udev_get_run_path(struct udev *a)
{
if (a == NULL)
return NULL;
return "/run/udev";
}
_public_
const char *udev_get_sys_path(struct udev *a)
{
if (a == NULL)
return NULL;
return "/sys";
}
_public_
const char *udev_get_dev_path(struct udev *a)
{
if (a == NULL)
return NULL;
return "/dev";
}
_public_
struct udev_list_entry *udev_queue_get_failed_list_entry(_unused_ struct udev_queue *a)
{
/*
* Seemingly upstream never checked if the udev_queue arg is NULL, so don't
* check here either.
*/
errno = ENOSYS;
return NULL;
}
_public_
struct udev_monitor *udev_monitor_new_from_socket(struct udev *a, const char *b)
{
if (a == NULL)
return NULL;
if (b == NULL)
return NULL;
errno = ENOSYS;
return NULL;
}