diff options
Diffstat (limited to 'extra/usb_updater/verify_ro.h')
-rw-r--r-- | extra/usb_updater/verify_ro.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/usb_updater/verify_ro.h b/extra/usb_updater/verify_ro.h new file mode 100644 index 0000000000..de2443b8b4 --- /dev/null +++ b/extra/usb_updater/verify_ro.h @@ -0,0 +1,24 @@ +/* + * Copyright 2018 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __EXTRA_USB_UPDATER_VERIFY_RO_H +#define __EXTRA_USB_UPDATER_VERIFY_RO_H + +#include <stdbool.h> + +#include "gsctool.h" + +/* + * Runs RO verification on the target specified in td using the description file + * desc_file_name. If show_machine_output is set, target's board ID will be + * outputted in a machine-friendly format. Returns 0 on success or a negative + * value if there is an error. + */ +int verify_ro(struct transfer_descriptor *td, + const char *desc_file_name, + bool show_machine_output); + +#endif // __EXTRA_USB_UPDATER_VERIFY_RO_H |