X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fparser-utils.c;h=47e30d8055040cb28b9b876ff7d88ffa4cb45ac6;hp=a91c33a457760ce31ec57705fef78dfe5b890adf;hb=6532debf0bd95509cff9eb8634f57aef20a696b9;hpb=ff7fa9c37c952d0df20ba73f3109182c01347f2e diff --git a/discover/parser-utils.c b/discover/parser-utils.c index a91c33a..47e30d8 100644 --- a/discover/parser-utils.c +++ b/discover/parser-utils.c @@ -5,6 +5,7 @@ #include #include "pb-protocol/pb-protocol.h" +#include "event.h" #include "udev.h" #include "device-handler.h" #include "parser-utils.h" @@ -42,13 +43,13 @@ const char *generic_icon_file(enum generic_icon_type type) enum generic_icon_type guess_device_type(struct discover_context *ctx) { - struct udev_event *event; + struct event *event; const char *type, *bus; event = ctx->event; - type = udev_event_param(event, "ID_TYPE"); - bus = udev_event_param(event, "ID_BUS"); + type = event_get_param(event, "ID_TYPE"); + bus = event_get_param(event, "ID_BUS"); if (type && streq(type, "cd")) return ICON_TYPE_OPTICAL;