James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 1 | // 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 Bray | 1cf2a6a | 2015-02-20 10:16:11 -0800 | [diff] [blame] | 8 | #include "mojo/public/c/system/types.h" |
| 9 | |
| 10 | struct NaClDesc; |
| 11 | |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 12 | namespace mojo { |
| 13 | |
Nick Bray | 1cf2a6a | 2015-02-20 10:16:11 -0800 | [diff] [blame] | 14 | // Callee assumes ownership of |nexe_desc|, |irt_desc|, and |handle|. |
| 15 | int LaunchNaCl(NaClDesc* nexe_desc, |
| 16 | NaClDesc* irt_desc, |
| 17 | int app_argc, |
| 18 | char* app_argv[], |
| 19 | MojoHandle handle); |
| 20 | |
| 21 | void NaClExit(int code); |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 22 | |
Nick Bray | b0e6d97 | 2015-02-26 11:22:57 -0800 | [diff] [blame] | 23 | } // namespace mojo |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 24 | |
Nick Bray | b0e6d97 | 2015-02-26 11:22:57 -0800 | [diff] [blame] | 25 | #endif // MOJO_NACL_MONACL_SEL_MAIN_H_ |