aboutsummaryrefslogtreecommitdiff
path: root/minijail0_cli.h
blob: 00a541c0bfa9acc11764ecf6ffa0939f0848fd6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Copyright 2018 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * Helpers for the minijail0 program.  Split out for unittesting.
 */

#ifndef MINIJAIL_MINIJAIL0_CLI_H_
#define MINIJAIL_MINIJAIL0_CLI_H_

#include "elfparse.h"

#ifdef __cplusplus
extern "C" {
#endif

struct minijail;

int parse_args(struct minijail *j, int argc, char *const argv[],
	       char *const environ[], int *exit_immediately,
	       ElfType *elftype, const char **preload_path,
	       char ***envp);

#ifdef __cplusplus
}; /* extern "C" */
#endif

#endif  /* MINIJAIL_MINIJAIL0_CLI_H_ */