X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev%2Fudev.h;h=d0ffb6cb3119f9fe9d8c4aab3feb34e4bb0f25b4;hb=dcdcb8cc06c044a0429a688266799838e914f88d;hp=eb020cd3bb106e1541d146c0fddfe2bc6f68ef12;hpb=d7ddce186c8a0171eb98862b6f8ff72d64261b33;p=elogind.git diff --git a/udev/udev.h b/udev/udev.h index eb020cd3b..d0ffb6cb3 100644 --- a/udev/udev.h +++ b/udev/udev.h @@ -89,7 +89,7 @@ struct udev_event { struct udev_rules; extern struct udev_event *udev_event_new(struct udev_device *dev); extern void udev_event_unref(struct udev_event *event); -extern int udev_event_run(struct udev_event *event, struct udev_rules *rules); +extern int udev_event_execute_rules(struct udev_event *event, struct udev_rules *rules); /* udev-rules.c */ extern struct udev_rules *udev_rules_new(struct udev *udev, int resolve_names); @@ -111,6 +111,8 @@ 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); +extern int run_program(struct udev *udev, const char *command, char **envp, + char *result, size_t ressize, size_t *reslen); /* udev_utils_file.c */ extern int file_map(const char *filename, char **buf, size_t *bufsize);