summaryrefslogtreecommitdiff
path: root/udev/udev.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-16 20:23:56 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-16 20:23:56 +0200
commita390e6f764087b74b1567e1daf1f1c41eae42c74 (patch)
tree127963ab53f4ee09de63b6d2f0dc8db09b25e939 /udev/udev.h
parentdaa849db6faf73fd712b6ff8fc63adcd7d82f178 (diff)
delete name_list, move common file functions
Diffstat (limited to 'udev/udev.h')
-rw-r--r--udev/udev.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/udev/udev.h b/udev/udev.h
index 9a808c39aa..e5c7cd192f 100644
--- a/udev/udev.h
+++ b/udev/udev.h
@@ -102,22 +102,13 @@ extern int udev_node_remove(struct udev_device *dev, int test);
extern void udev_node_update_old_links(struct udev_device *dev, struct udev_device *dev_old, int test);
/* udev-util.c */
-struct name_entry {
- struct list_head node;
- char name[UTIL_PATH_SIZE];
- unsigned int ignore_error:1;
-};
-extern struct name_entry *name_list_add(struct udev *udev, struct list_head *name_list, const char *name, int sort);
-extern struct name_entry *name_list_key_add(struct udev *udev, struct list_head *name_list, const char *key, const char *value);
-extern int name_list_key_remove(struct udev *udev, struct list_head *name_list, const char *key);
-extern void name_list_cleanup(struct udev *udev, struct list_head *name_list);
+extern int create_path(struct udev *udev, const char *path);
+extern int delete_path(struct udev *udev, const char *path);
+extern int unlink_secure(struct udev *udev, const char *filename);
extern uid_t lookup_user(struct udev *udev, const char *user);
extern gid_t lookup_group(struct udev *udev, const char *group);
/* udev_utils_file.c */
-extern int create_path(struct udev *udev, const char *path);
-extern int delete_path(struct udev *udev, const char *path);
-extern int unlink_secure(struct udev *udev, const char *filename);
extern int file_map(const char *filename, char **buf, size_t *bufsize);
extern void file_unmap(void *buf, size_t bufsize);
extern size_t buf_get_line(const char *buf, size_t buflen, size_t cur);