chiark / gitweb /
[PATCH] change call_foreach_file to return a list
[elogind.git] / udev_utils.h
index c7a41aaa449371b71e957b699b4d4d7b6e85bec5..b45500dcff61b63f6d6ff76572b9c672720b41f8 100644 (file)
@@ -41,6 +41,6 @@ extern void file_unmap(char *buf, size_t bufsize);
 extern size_t buf_get_line(const char *buf, size_t buflen, size_t cur);
 extern void no_trailing_slash(char *path);
 extern int name_list_add(struct list_head *name_list, const char *name, int sort);
-extern int call_foreach_file(int (*handler_function)(struct udevice *udev, const char *string),
-                            struct udevice *udev, const char *dirname, const char *suffix);
+extern int add_matching_files(struct list_head *name_list, const char *dirname, const char *suffix);
+
 #endif