summaryrefslogtreecommitdiffstats
path: root/discover/parser-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'discover/parser-utils.c')
-rw-r--r--discover/parser-utils.c7
1 files changed, 4 insertions, 3 deletions
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 <talloc/talloc.h>
#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;
OpenPOWER on IntegriCloud