summaryrefslogtreecommitdiff
path: root/udev/udevadm-settle.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-07-14 01:53:23 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-07-14 01:53:23 +0200
commit1985c76e48753c200b5a15630b00245c3f60775b (patch)
tree7b7b6e186a9889930dbe92e1f80ca3cdac6c5a76 /udev/udevadm-settle.c
parentb3ca87a04a6bc32d852774211b35313ec8a09da1 (diff)
udevadm: move udevadm command descriptions into their files
Diffstat (limited to 'udev/udevadm-settle.c')
-rw-r--r--udev/udevadm-settle.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/udev/udevadm-settle.c b/udev/udevadm-settle.c
index b17ba806d0..d40c8c8d5e 100644
--- a/udev/udevadm-settle.c
+++ b/udev/udevadm-settle.c
@@ -36,7 +36,7 @@
#include "udev.h"
-int udevadm_settle(struct udev *udev, int argc, char *argv[])
+static int adm_settle(struct udev *udev, int argc, char *argv[])
{
static const struct option options[] = {
{ "seq-start", required_argument, NULL, 's' },
@@ -225,3 +225,9 @@ out:
udev_queue_unref(udev_queue);
return rc;
}
+
+const struct udevadm_cmd udevadm_settle = {
+ .name = "settle",
+ .cmd = adm_settle,
+ .help = "wait for the event queue to finish",
+};