chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] determine device type in udev_init_device()
[elogind.git]
/
udev.h
diff --git
a/udev.h
b/udev.h
index 2d2ef364b6084c47d26c2f967059c45b6a38f96e..d6dbd7c3325dcd00dbd47562fd22eeac52b47a3f 100644
(file)
--- a/
udev.h
+++ b/
udev.h
@@
-26,6
+26,7
@@
#include <sys/types.h>
#include <sys/param.h>
#include "libsysfs/sysfs/libsysfs.h"
#include <sys/types.h>
#include <sys/param.h>
#include "libsysfs/sysfs/libsysfs.h"
+#include "list.h"
#define ALARM_TIMEOUT 120
#define COMMENT_CHARACTER '#'
#define ALARM_TIMEOUT 120
#define COMMENT_CHARACTER '#'
@@
-48,6
+49,14
@@
#define DEFAULT_PARTITIONS_COUNT 15
#define DEFAULT_PARTITIONS_COUNT 15
+enum device_type {
+ UNKNOWN,
+ CLASS,
+ BLOCK,
+ NET,
+ PHYSDEV,
+};
+
struct udevice {
char devpath[DEVPATH_SIZE];
char subsystem[SUBSYSTEM_SIZE];
struct udevice {
char devpath[DEVPATH_SIZE];
char subsystem[SUBSYSTEM_SIZE];