2 * Copyright (c) 2011-2012 The Chromium OS Authors.
3 * SPDX-License-Identifier: GPL-2.0+
6 #ifndef __SANDBOX_STATE_H
7 #define __SANDBOX_STATE_H
11 /* How we exited U-Boot */
14 STATE_EXIT_COLD_REBOOT,
18 /* The complete state of the test system */
19 struct sandbox_state {
20 const char *cmd; /* Command to execute */
21 const char *fdt_fname; /* Filename of FDT binary */
22 enum exit_type_id exit_type; /* How we exited U-Boot */
23 const char *parse_err; /* Error to report from parsing */
24 int argc; /* Program arguments */
29 * Record the exit type to be reported by the test program.
31 * @param exit_type Exit type to record
33 void state_record_exit(enum exit_type_id exit_type);
36 * Gets a pointer to the current state.
38 * @return pointer to state
40 struct sandbox_state *state_get_current(void);
43 * Initialize the test system state