| 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 {{generator_warning}} | 5 {{generator_warning}} |
| 6 | 6 |
| 7 #include "{{bindings_dir}}/mojo_syscall.h" | 7 #include "{{bindings_dir}}/mojo_syscall.h" |
| 8 | 8 |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 MojoResult InjectMojo(struct NaClApp* nap, MojoHandle handle) { | 101 MojoResult InjectMojo(struct NaClApp* nap, MojoHandle handle) { |
| 102 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap)); | 102 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap)); |
| 103 g_mojo_system = MojoSystemImplCreateImpl(); | 103 g_mojo_system = MojoSystemImplCreateImpl(); |
| 104 return MojoSystemImplTransferHandle(MojoSystemImplGetDefaultImpl(), handle, | 104 return MojoSystemImplTransferHandle(MojoSystemImplGetDefaultImpl(), handle, |
| 105 g_mojo_system, &g_mojo_handle); | 105 g_mojo_system, &g_mojo_handle); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void InjectDisabledMojo(struct NaClApp* nap) { | 108 void InjectDisabledMojo(struct NaClApp* nap) { |
| 109 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap)); | 109 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap)); |
| 110 } | 110 } |
| OLD | NEW |