2 * Copyright (c) 2011-2012 The Chromium OS Authors.
3 * SPDX-License-Identifier: GPL-2.0+
9 /* Main state record for the sandbox */
10 static struct sandbox_state main_state;
11 static struct sandbox_state *state; /* Pointer to current state record */
13 void state_record_exit(enum exit_type_id exit_type)
15 state->exit_type = exit_type;
18 struct sandbox_state *state_get_current(void)
29 * Example of how to use GPIOs:
31 * sandbox_gpio_set_direction(170, 0);
32 * sandbox_gpio_set_value(170, 0);