Mike Frysinger | 5ef22ca | 2018-01-20 13:42:10 -0500 | [diff] [blame] | 1 | /* Copyright 2018 The Chromium OS 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 | * 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 "elfparse.h" |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | struct minijail; |
| 18 | |
Luis Hector Chavez | 9acba45 | 2018-10-11 10:13:25 -0700 | [diff] [blame^] | 19 | int parse_args(struct minijail *j, int argc, char *const argv[], |
| 20 | int *exit_immediately, ElfType *elftype, |
| 21 | const char **preload_path); |
Mike Frysinger | 5ef22ca | 2018-01-20 13:42:10 -0500 | [diff] [blame] | 22 | |
| 23 | #ifdef __cplusplus |
| 24 | }; /* extern "C" */ |
| 25 | #endif |
| 26 | |
| 27 | #endif /* MINIJAIL_MINIJAIL0_CLI_H_ */ |