diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2009-01-02 16:34:18 +0900 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-01-02 16:34:18 +0900 |
commit | ce5eab024583af5a4725503bad6ed2aee452b1aa (patch) | |
tree | 534753bfa7fd65f6c173f62e75995adc6376ff9f /discover/device-handler.h | |
parent | b118597194815910897ccf86d77b8b5a066adf5a (diff) | |
download | talos-petitboot-ce5eab024583af5a4725503bad6ed2aee452b1aa.tar.gz talos-petitboot-ce5eab024583af5a4725503bad6ed2aee452b1aa.zip |
Hook up parsers to device discovery
Iterate the parsers from the device handler on an add event.
Initial change to just the kboot parser.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r-- | discover/device-handler.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h index ddcb201..cd28420 100644 --- a/discover/device-handler.h +++ b/discover/device-handler.h @@ -1,11 +1,25 @@ #ifndef _DEVICE_HANDLER_H #define _DEVICE_HANDLER_H +#include <list/list.h> + struct device_handler; struct discover_server; struct udev_event; struct device; +struct discover_context { + char *id; + char *device_path; + char *mount_path; + struct udev_event *event; + struct device *device; + char **links; + int n_links; + + struct list_item list; +}; + struct device_handler *device_handler_init(struct discover_server *server); void device_handler_destroy(struct device_handler *devices); |