xref: /aosp_15_r20/external/gsc-utils/extra/usb_updater/verify_ro.h (revision 4f2df630800bdcf1d4f0decf95d8a1cb87344f5f)
1 /*
2  * Copyright 2018 The ChromiumOS Authors
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6 
7 #ifndef __EXTRA_USB_UPDATER_VERIFY_RO_H
8 #define __EXTRA_USB_UPDATER_VERIFY_RO_H
9 
10 #include <stdbool.h>
11 
12 #include "gsctool.h"
13 
14 /*
15  * Runs RO verification on the target specified in td using the description file
16  * desc_file_name. If show_machine_output is set, target's board ID will be
17  * outputted in a machine-friendly format. Returns 0 on success or a negative
18  * value if there is an error.
19  */
20 int verify_ro(struct transfer_descriptor *td, const char *desc_file_name,
21 	      bool show_machine_output);
22 
23 #endif // __EXTRA_USB_UPDATER_VERIFY_RO_H
24