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 
11 enum option {
12     OPTION_FILENAME,
13 #define OPTION_FILENAME_STRING "userboot"
14 #define OPTION_FILENAME_DEFAULT "bin/bootsvc"
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 
24 struct options {
25     const char* value[OPTION_MAX];
26 };
27 
28 void parse_options(zx_handle_t log, struct options *o, char** strings);
29 
30 #pragma GCC visibility pop
31