X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fdevice-handler.h;h=6b36e075000ecd2bcad00e9edf912463e9221010;hb=b10df89fa71e596c3cf870f599360dfc9c3ace48;hp=854be48dab48176e925e985eb56cf0a936fe48c6;hpb=995e08e3de9aaff81e72227587ffcb4cc78175d0;p=petitboot diff --git a/discover/device-handler.h b/discover/device-handler.h index 854be48..6b36e07 100644 --- a/discover/device-handler.h +++ b/discover/device-handler.h @@ -33,8 +33,11 @@ struct discover_device { const char *uuid; const char *label; - const char *mount_path; + char *mount_path; const char *device_path; + bool mounted; + bool mounted_rw; + bool unmount; bool notified; @@ -62,6 +65,7 @@ struct discover_context { struct list boot_options; struct pb_url *conf_url; enum conf_method method; + void *test_data; }; struct device_handler *device_handler_init(struct discover_server *server, @@ -121,4 +125,7 @@ void device_handler_boot(struct device_handler *handler, struct boot_command *cmd); void device_handler_cancel_default(struct device_handler *handler); +int device_request_write(struct discover_device *dev, bool *release); +void device_release_write(struct discover_device *dev, bool release); + #endif /* _DEVICE_HANDLER_H */