summaryrefslogtreecommitdiff
path: root/extra/usb_updater/verify_ro.h
blob: 05a91ce5e3f102dc67c14308f9b6addf1ae0f008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright 2018 The ChromiumOS Authors
 * 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