blob: d376f649f86583e9d73a59962474b6127b6cc7e0 [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001// Copyright 2014 The Chromium 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#ifndef MOJO_NACL_MONACL_SEL_MAIN_H_
6#define MOJO_NACL_MONACL_SEL_MAIN_H_
7
Nick Bray1cf2a6a2015-02-20 10:16:11 -08008#include "mojo/public/c/system/types.h"
9
10struct NaClDesc;
11
James Robinson646469d2014-10-03 15:33:28 -070012namespace mojo {
13
Nick Bray1cf2a6a2015-02-20 10:16:11 -080014// Callee assumes ownership of |nexe_desc|, |irt_desc|, and |handle|.
15int LaunchNaCl(NaClDesc* nexe_desc,
16 NaClDesc* irt_desc,
17 int app_argc,
18 char* app_argv[],
19 MojoHandle handle);
20
21void NaClExit(int code);
James Robinson646469d2014-10-03 15:33:28 -070022
Nick Brayb0e6d972015-02-26 11:22:57 -080023} // namespace mojo
James Robinson646469d2014-10-03 15:33:28 -070024
Nick Brayb0e6d972015-02-26 11:22:57 -080025#endif // MOJO_NACL_MONACL_SEL_MAIN_H_