diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-14 01:53:23 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-14 01:53:23 +0200 |
commit | 1985c76e48753c200b5a15630b00245c3f60775b (patch) | |
tree | 7b7b6e186a9889930dbe92e1f80ca3cdac6c5a76 /udev/udev.h | |
parent | b3ca87a04a6bc32d852774211b35313ec8a09da1 (diff) |
udevadm: move udevadm command descriptions into their files
Diffstat (limited to 'udev/udev.h')
-rw-r--r-- | udev/udev.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/udev/udev.h b/udev/udev.h index 0a693e4608..0c73b502cb 100644 --- a/udev/udev.h +++ b/udev/udev.h @@ -129,10 +129,16 @@ const char *udev_ctrl_get_set_env(struct udev_ctrl_msg *ctrl_msg); int udev_ctrl_get_set_children_max(struct udev_ctrl_msg *ctrl_msg); /* udevadm commands */ -int udevadm_monitor(struct udev *udev, int argc, char *argv[]); -int udevadm_info(struct udev *udev, int argc, char *argv[]); -int udevadm_control(struct udev *udev, int argc, char *argv[]); -int udevadm_trigger(struct udev *udev, int argc, char *argv[]); -int udevadm_settle(struct udev *udev, int argc, char *argv[]); -int udevadm_test(struct udev *udev, int argc, char *argv[]); +struct udevadm_cmd { + const char *name; + int (*cmd)(struct udev *udev, int argc, char *argv[]); + const char *help; + int debug; +}; +extern const struct udevadm_cmd udevadm_monitor; +extern const struct udevadm_cmd udevadm_info; +extern const struct udevadm_cmd udevadm_control; +extern const struct udevadm_cmd udevadm_trigger; +extern const struct udevadm_cmd udevadm_settle; +extern const struct udevadm_cmd udevadm_test; #endif |