goto out_err;
}
- waiter_register(waitset, client->fd, WAIT_IN, discover_client_process,
- client);
+ waiter_register_io(waitset, client->fd, WAIT_IN,
+ discover_client_process, client);
return client;
command->option_id = boot_option->id;
command->boot_image_file = data->image;
command->initrd_file = data->initrd;
+ command->dtb_file = data->dtb;
command->boot_args = data->args;
}
return rc;
}
+
+int discover_client_cancel_default(struct discover_client *client)
+{
+ struct pb_protocol_message *message;
+
+ message = pb_protocol_create_message(client,
+ PB_PROTOCOL_ACTION_CANCEL_DEFAULT, 0);
+
+ if (!message)
+ return -1;
+
+ return pb_protocol_write_message(client->fd, message);
+}