chiark / gitweb /
[PATCH] udevd - cleanup and better timeout handling
[elogind.git] / udevd.h
diff --git a/udevd.h b/udevd.h
index eb516ab65ddeda70c6b06221818f1da4bb1a31aa..c9b69bbc3cb6a0e4282556af8a8a1e6c4c18a629 100644 (file)
--- a/udevd.h
+++ b/udevd.h
  *
  */
 
-#define HOTPLUGMSGTYPE         44
-#define DEFAULT_EXEC_PROGRAM   "/sbin/udev"
-#define IPC_KEY_ID             0
+#include "list.h"
+
+#define UDEV_EXEC                      "./udev"
+#define UDEVD_EXEC                     "./udevd"
+#define UDEVD_TIMEOUT_SECONDS          60
+#define EVENT_TIMEOUT_SECONDS          5
+
+#define IPC_KEY_ID                     0
+#define HOTPLUGMSGTYPE                 44
 
 
 struct hotplug_msg {
        long mtype;
-       struct hotplug_msg *next;
+       struct list_head list;
        int seqnum;
+       time_t queue_time;
        char action[8];
        char devpath[128];
        char subsystem[16];