Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: nacl_bindings_generator/mojo_irt.c.tmpl

Issue 955113002: Rearrange mojo/nacl files. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « nacl_bindings_generator/libmojo.cc.tmpl ('k') | nacl_bindings_generator/mojo_irt.h.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "mojo/nacl/mojo_irt.h"
11 #include "mojo/public/c/system/core.h" 10 #include "mojo/public/c/system/core.h"
11 #include "{{platform_dir}}/mojo_irt.h"
12 #include "native_client/src/public/chrome_main.h" 12 #include "native_client/src/public/chrome_main.h"
13 #include "native_client/src/public/imc_syscalls.h" 13 #include "native_client/src/public/imc_syscalls.h"
14 #include "native_client/src/public/imc_types.h" 14 #include "native_client/src/public/imc_types.h"
15 #include "native_client/src/public/irt_core.h" 15 #include "native_client/src/public/irt_core.h"
16 16
17 #define NACL_MOJO_DESC (NACL_CHROME_DESC_BASE + 3) 17 #define NACL_MOJO_DESC (NACL_CHROME_DESC_BASE + 3)
18 18
19 static void DoMojoCall(uint32_t params[], nacl_abi_size_t num_params) { 19 static void DoMojoCall(uint32_t params[], nacl_abi_size_t num_params) {
20 struct NaClAbiNaClImcMsgIoVec iov[1] = { 20 struct NaClAbiNaClImcMsgIoVec iov[1] = {
21 {params, num_params} 21 {params, num_params}
(...skipping 12 matching lines...) Expand all
34 size_t tablesize) { 34 size_t tablesize) {
35 static const size_t size = sizeof(kIrtMojo); 35 static const size_t size = sizeof(kIrtMojo);
36 if (0 == strcmp(interface_ident, NACL_IRT_MOJO_v0_1)) { 36 if (0 == strcmp(interface_ident, NACL_IRT_MOJO_v0_1)) {
37 if (size <= tablesize) { 37 if (size <= tablesize) {
38 memcpy(table, &kIrtMojo, size); 38 memcpy(table, &kIrtMojo, size);
39 return size; 39 return size;
40 } 40 }
41 } 41 }
42 return 0; 42 return 0;
43 } 43 }
OLDNEW
« no previous file with comments | « nacl_bindings_generator/libmojo.cc.tmpl ('k') | nacl_bindings_generator/mojo_irt.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698