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

Side by Side Diff: mojo/nacl/nonsfi/irt_mojo_nonsfi.h

Issue 1783623005: Add mojo/c/system/{time.h,wait.h}. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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
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 #ifndef MOJO_NACL_NONSFI_IRT_MOJO_NONSFI_H_ 5 #ifndef MOJO_NACL_NONSFI_IRT_MOJO_NONSFI_H_
6 #define MOJO_NACL_NONSFI_IRT_MOJO_NONSFI_H_ 6 #define MOJO_NACL_NONSFI_IRT_MOJO_NONSFI_H_
7 7
8 #include "mojo/public/c/system/functions.h" 8 #include "mojo/public/c/system/handle.h"
9 #include "mojo/public/c/system/result.h"
9 #include "native_client/src/untrusted/irt/irt_dev.h" 10 #include "native_client/src/untrusted/irt/irt_dev.h"
10 11
11 namespace nacl { 12 namespace nacl {
12 13
13 extern const struct nacl_irt_private_pnacl_translator_compile 14 extern const struct nacl_irt_private_pnacl_translator_compile
14 nacl_irt_private_pnacl_translator_compile; 15 nacl_irt_private_pnacl_translator_compile;
15 extern const struct nacl_irt_private_pnacl_translator_link 16 extern const struct nacl_irt_private_pnacl_translator_link
16 nacl_irt_private_pnacl_translator_link; 17 nacl_irt_private_pnacl_translator_link;
17 extern const struct nacl_irt_resource_open 18 extern const struct nacl_irt_resource_open
18 nacl_irt_resource_open; 19 nacl_irt_resource_open;
19 20
20 // Used to pass handle to application. If uncalled, 21 // Used to pass handle to application. If uncalled,
21 // the handle defaults to MOJO_HANDLE_INVALID. 22 // the handle defaults to MOJO_HANDLE_INVALID.
22 void MojoSetInitialHandle(MojoHandle handle); 23 void MojoSetInitialHandle(MojoHandle handle);
23 24
24 MojoResult MojoGetInitialHandle(MojoHandle* handle); 25 MojoResult MojoGetInitialHandle(MojoHandle* handle);
25 26
26 // Mechanism to control when nexes get access to the PNaCl translation 27 // Mechanism to control when nexes get access to the PNaCl translation
27 // IRT functions. 28 // IRT functions.
28 void MojoPnaclTranslatorEnable(); 29 void MojoPnaclTranslatorEnable();
29 30
30 // IRT interface query function which may be passed to nacl_irt_nonsfi_entry. 31 // IRT interface query function which may be passed to nacl_irt_nonsfi_entry.
31 // Queries for a mojo interface, then for the irt core. 32 // Queries for a mojo interface, then for the irt core.
32 size_t MojoIrtNonsfiQuery(const char* interface_ident, 33 size_t MojoIrtNonsfiQuery(const char* interface_ident,
33 void* table, 34 void* table,
34 size_t tablesize); 35 size_t tablesize);
35 36
36 } // namespace nacl 37 } // namespace nacl
37 #endif // MOJO_NACL_NONSFI_IRT_MOJO_NONSFI_H_ 38 #endif // MOJO_NACL_NONSFI_IRT_MOJO_NONSFI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698