]> git.ozlabs.org Git - petitboot/blobdiff - discover/event-parser.c
discover: Consolidate user events by device ID
[petitboot] / discover / event-parser.c
index 1eec5c9cd410ca55f7a90a33f987e82a83a06c7d..c09c5babc27a1e44d642c31f523688b55b652ff4 100644 (file)
@@ -13,7 +13,7 @@
  * Understands params: name, image, args.
  */
 
  * Understands params: name, image, args.
  */
 
-int parse_user_event(struct device *device, struct event *event)
+struct boot_option *parse_user_event(struct device *device, struct event *event)
 {
        struct boot_option *opt;
        const char *p;
 {
        struct boot_option *opt;
        const char *p;
@@ -54,9 +54,9 @@ int parse_user_event(struct device *device, struct event *event)
 
        device_add_boot_option(device, opt);
 
 
        device_add_boot_option(device, opt);
 
-       return 0;
+       return opt;
 
 fail:
        talloc_free(opt);
 
 fail:
        talloc_free(opt);
-       return -1;
+       return NULL;
 }
 }