1 /* Copyright 2018 The ChromiumOS Authors 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 * 5 * Helpers for the minijail0 program. Split out for unittesting. 6 */ 7 8 #ifndef MINIJAIL_MINIJAIL0_CLI_H_ 9 #define MINIJAIL_MINIJAIL0_CLI_H_ 10 11 #include <stdbool.h> 12 13 #include "elfparse.h" 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 struct minijail; 20 21 int parse_args(struct minijail *j, int argc, char *const argv[], 22 char *const environ[], bool *exit_immediately, ElfType *elftype, 23 const char **preload_path, char ***envp); 24 25 #ifdef __cplusplus 26 }; /* extern "C" */ 27 #endif 28 29 #endif /* MINIJAIL_MINIJAIL0_CLI_H_ */ 30