Chromium Code Reviews| Index: mojo/nacl/nexe_launcher_nonsfi.h |
| diff --git a/mojo/nacl/nexe_launcher_nonsfi.h b/mojo/nacl/nexe_launcher_nonsfi.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..79cafad1fb743fef5c06a1f17a895c4aba9baa70 |
| --- /dev/null |
| +++ b/mojo/nacl/nexe_launcher_nonsfi.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MOJO_NACL_NEXE_LAUNCHER_NONSFI_H_ |
| +#define MOJO_NACL_NEXE_LAUNCHER_NONSFI_H_ |
| + |
| +#include "mojo/public/c/system/types.h" |
| +#include "native_client/src/public/irt_core.h" |
|
Mark Seaborn
2015/10/02 22:31:57
Nit: These two NaCl headers aren't needed by this
Sean Klein
2015/10/02 22:41:10
Done.
|
| +#include "native_client/src/public/nonsfi/elf_loader.h" |
| + |
| +namespace nacl { |
| + |
| +/** |
| + * Takes a fd to a nexe, and launches the nexe with the given |
| + * MojoHandle. |
| + */ |
| +void MojoLaunchNexeNonsfi(int fd, MojoHandle handle); |
|
Mark Seaborn
2015/10/02 22:31:57
Suggestion: Could make this more self-documenting
Sean Klein
2015/10/02 22:41:10
Done.
|
| + |
| +} // namespace nacl |
| + |
| +#endif // MOJO_NACL_NEXE_LAUNCHER_NONSFI_H_ |