blob: cd504b3a004c63897da44d0e6f8e665929c5bf05 [file] [log] [blame]
Mike Frysinger5ef22ca2018-01-20 13:42:10 -05001/* 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
14extern "C" {
15#endif
16
17struct minijail;
18
Luis Hector Chavez9acba452018-10-11 10:13:25 -070019int parse_args(struct minijail *j, int argc, char *const argv[],
Stéphane Lesimplef65da3a2022-01-11 11:44:47 +010020 char *const environ[], int *exit_immediately,
21 ElfType *elftype, const char **preload_path,
22 char ***envp);
Mike Frysinger5ef22ca2018-01-20 13:42:10 -050023
24#ifdef __cplusplus
25}; /* extern "C" */
26#endif
27
28#endif /* MINIJAIL_MINIJAIL0_CLI_H_ */