OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // WARNING this file was generated by generate_nacl_bindings.py | 5 // WARNING this file was generated by generate_nacl_bindings.py |
6 // Do not edit by hand. | 6 // Do not edit by hand. |
7 | 7 |
8 #include "mojo/nacl/sfi/nacl_bindings/mojo_syscall.h" | 8 #include "mojo/nacl/sfi/nacl_bindings/mojo_syscall.h" |
9 | 9 |
10 #include <stdio.h> | 10 #include <stdio.h> |
11 | 11 |
12 #include "mojo/nacl/sfi/nacl_bindings/mojo_syscall_internal.h" | 12 #include "mojo/nacl/sfi/nacl_bindings/mojo_syscall_internal.h" |
13 #include "mojo/public/c/system/buffer.h" | 13 #include "mojo/public/c/system/buffer.h" |
14 #include "mojo/public/c/system/data_pipe.h" | 14 #include "mojo/public/c/system/data_pipe.h" |
15 #include "mojo/public/c/system/handle.h" | 15 #include "mojo/public/c/system/handle.h" |
16 #include "mojo/public/c/system/message_pipe.h" | 16 #include "mojo/public/c/system/message_pipe.h" |
17 #include "mojo/public/c/system/result.h" | 17 #include "mojo/public/c/system/result.h" |
18 #include "mojo/public/c/system/types.h" | 18 #include "mojo/public/c/system/time.h" |
19 #include "mojo/public/platform/native/system_impl_private.h" | 19 #include "mojo/public/platform/native/system_impl_private.h" |
20 #include "native_client/src/public/chrome_main.h" | 20 #include "native_client/src/public/chrome_main.h" |
21 #include "native_client/src/public/nacl_app.h" | 21 #include "native_client/src/public/nacl_app.h" |
22 #include "native_client/src/trusted/desc/nacl_desc_custom.h" | 22 #include "native_client/src/trusted/desc/nacl_desc_custom.h" |
23 | 23 |
24 MojoHandle g_mojo_handle = MOJO_HANDLE_INVALID; | 24 MojoHandle g_mojo_handle = MOJO_HANDLE_INVALID; |
25 MojoSystemImpl g_mojo_system = nullptr; | 25 MojoSystemImpl g_mojo_system = nullptr; |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 MojoResult InjectMojo(struct NaClApp* nap, MojoHandle handle) { | 762 MojoResult InjectMojo(struct NaClApp* nap, MojoHandle handle) { |
763 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap)); | 763 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap)); |
764 g_mojo_system = MojoSystemImplCreateImpl(); | 764 g_mojo_system = MojoSystemImplCreateImpl(); |
765 return MojoSystemImplTransferHandle(MojoSystemImplGetDefaultImpl(), handle, | 765 return MojoSystemImplTransferHandle(MojoSystemImplGetDefaultImpl(), handle, |
766 g_mojo_system, &g_mojo_handle); | 766 g_mojo_system, &g_mojo_handle); |
767 } | 767 } |
768 | 768 |
769 void InjectDisabledMojo(struct NaClApp* nap) { | 769 void InjectDisabledMojo(struct NaClApp* nap) { |
770 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap)); | 770 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap)); |
771 } | 771 } |
OLD | NEW |