1// Copyright 2016 The Fuchsia Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#pragma once 6 7#pragma GCC visibility push(hidden) 8 9#include <zircon/types.h> 10 11enum option { 12 OPTION_FILENAME, 13#define OPTION_FILENAME_STRING "userboot" 14#define OPTION_FILENAME_DEFAULT "bin/devmgr" 15 OPTION_SHUTDOWN, 16#define OPTION_SHUTDOWN_STRING "userboot.shutdown" 17#define OPTION_SHUTDOWN_DEFAULT NULL 18 OPTION_REBOOT, 19#define OPTION_REBOOT_STRING "userboot.reboot" 20#define OPTION_REBOOT_DEFAULT NULL 21 OPTION_MAX 22}; 23 24struct options { 25 const char* value[OPTION_MAX]; 26}; 27 28void parse_options(zx_handle_t log, struct options *o, char** strings); 29 30#pragma GCC visibility pop 31