diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-12-21 23:10:56 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-12-21 23:10:56 +0100 |
commit | aa29418a13dc1e1eedca702663e733cc8d9f9859 (patch) | |
tree | 9e72f070d6176c329c285fcd50b1661e7d8b337f /udev/udev.h | |
parent | 81dadce58f80edae4dc45ba55a2c41cb0f26570b (diff) |
add builtin load/unload initializers
Diffstat (limited to 'udev/udev.h')
-rw-r--r-- | udev/udev.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/udev/udev.h b/udev/udev.h index 0a3d7c4506..a07c525a89 100644 --- a/udev/udev.h +++ b/udev/udev.h @@ -158,6 +158,8 @@ struct udev_builtin { const char *name; int (*cmd)(struct udev_device *dev, const char *command, bool test); const char *help; + int (*load)(struct udev *udev); + int (*unload)(struct udev *udev); bool run_once; }; extern const struct udev_builtin udev_builtin_path_id; @@ -165,6 +167,8 @@ extern const struct udev_builtin udev_builtin_usb_id; extern const struct udev_builtin udev_builtin_input_id; extern const struct udev_builtin udev_builtin_blkid; extern const struct udev_builtin udev_builtin_kmod; +int udev_builtin_load(struct udev *udev); +int udev_builtin_unload(struct udev *udev); enum udev_builtin_cmd udev_builtin_lookup(const char *command); const char *udev_builtin_name(enum udev_builtin_cmd cmd); bool udev_builtin_run_once(enum udev_builtin_cmd cmd); |