blob: cd504b3a004c63897da44d0e6f8e665929c5bf05 [file] [log] [blame]
/* Copyright 2018 The Chromium OS Authors. All rights reserved.
* 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_ */