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

Side by Side Diff: nacl_bindings/irt_entry_mojo.c

Issue 955113002: Rearrange mojo/nacl files. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Tweak Created 5 years, 10 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
OLDNEW
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 #include "mojo/nacl/mojo_irt.h" 5 #include "mojo/public/platform/nacl/mojo_irt.h"
6 #include "native_client/src/public/irt_core.h" 6 #include "native_client/src/public/irt_core.h"
7 7
8 static size_t irt_query(const char* interface_ident, 8 static size_t irt_query(const char* interface_ident,
9 void* table, size_t tablesize) { 9 void* table, size_t tablesize) {
10 // TODO(teravest): Add query for the Mojo IRT interface, when introduced. 10 // TODO(teravest): Add query for the Mojo IRT interface, when introduced.
11 size_t rc = mojo_irt_query(interface_ident, table, tablesize); 11 size_t rc = mojo_irt_query(interface_ident, table, tablesize);
12 if (rc != 0) 12 if (rc != 0)
13 return rc; 13 return rc;
14 14
15 return nacl_irt_query_core(interface_ident, table, tablesize); 15 return nacl_irt_query_core(interface_ident, table, tablesize);
16 } 16 }
17 17
18 void nacl_irt_start(uint32_t* info) { 18 void nacl_irt_start(uint32_t* info) {
19 nacl_irt_init(info); 19 nacl_irt_init(info);
20 nacl_irt_enter_user_code(info, irt_query); 20 nacl_irt_enter_user_code(info, irt_query);
21 } 21 }
OLDNEW
« nacl_bindings/BUILD.gn ('K') | « nacl_bindings/BUILD.gn ('k') | nacl_bindings/mojo_irt.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698