chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rules: add iowarrior rule
[elogind.git]
/
udev.h
diff --git
a/udev.h
b/udev.h
index 94d054f76069940ac35b6d5de6ca219e9e3d8531..f13eb8366eaa6f5707974b2abc22535efb4413a5 100644
(file)
--- a/
udev.h
+++ b/
udev.h
@@
-49,6
+49,7
@@
#define DB_DIR ".udev/db"
#define DB_NAME_INDEX_DIR ".udev/names"
#define DB_DIR ".udev/db"
#define DB_NAME_INDEX_DIR ".udev/names"
+#define RULES_DYN_DIR ".udev/rules.d"
struct udev_rules;
struct udev_rules;
@@
-119,6
+120,7
@@
extern struct sysfs_device *sysfs_device_get_parent(struct sysfs_device *dev);
extern struct sysfs_device *sysfs_device_get_parent_with_subsystem(struct sysfs_device *dev, const char *subsystem);
extern char *sysfs_attr_get_value(const char *devpath, const char *attr_name);
extern int sysfs_resolve_link(char *path, size_t size);
extern struct sysfs_device *sysfs_device_get_parent_with_subsystem(struct sysfs_device *dev, const char *subsystem);
extern char *sysfs_attr_get_value(const char *devpath, const char *attr_name);
extern int sysfs_resolve_link(char *path, size_t size);
+extern int sysfs_lookup_devpath_by_subsys_id(char *devpath, size_t len, const char *subsystem, const char *id);
/* udev_node.c */
extern int udev_node_mknod(struct udevice *udev, const char *file, dev_t devt, mode_t mode, uid_t uid, gid_t gid);
/* udev_node.c */
extern int udev_node_mknod(struct udevice *udev, const char *file, dev_t devt, mode_t mode, uid_t uid, gid_t gid);
@@
-137,10
+139,12
@@
extern int udev_db_get_all_entries(struct list_head *name_list);
struct name_entry {
struct list_head node;
char name[PATH_SIZE];
struct name_entry {
struct list_head node;
char name[PATH_SIZE];
+ unsigned int ignore_error:1;
};
};
+
extern int log_priority(const char *priority);
extern int log_priority(const char *priority);
-extern
char
*name_list_add(struct list_head *name_list, const char *name, int sort);
-extern
char
*name_list_key_add(struct list_head *name_list, const char *key, const char *value);
+extern
struct name_entry
*name_list_add(struct list_head *name_list, const char *name, int sort);
+extern
struct name_entry
*name_list_key_add(struct list_head *name_list, const char *key, const char *value);
extern int name_list_key_remove(struct list_head *name_list, const char *key);
extern void name_list_cleanup(struct list_head *name_list);
extern int add_matching_files(struct list_head *name_list, const char *dirname, const char *suffix);
extern int name_list_key_remove(struct list_head *name_list, const char *key);
extern void name_list_cleanup(struct list_head *name_list);
extern int add_matching_files(struct list_head *name_list, const char *dirname, const char *suffix);
@@
-163,9
+167,4
@@
extern void file_unmap(void *buf, size_t bufsize);
extern int unlink_secure(const char *filename);
extern size_t buf_get_line(const char *buf, size_t buflen, size_t cur);
extern int unlink_secure(const char *filename);
extern size_t buf_get_line(const char *buf, size_t buflen, size_t cur);
-/* udev_utils_run.c */
-extern int pass_env_to_socket(const char *name, const char *devpath, const char *action);
-extern int run_program(const char *command, const char *subsystem,
- char *result, size_t ressize, size_t *reslen, int log);
-
#endif
#endif