OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can be | |
4 * found in the LICENSE file. | |
5 */ | |
6 | |
7 #ifndef SRC_INCLUDE_MINSFI_H_ | |
jvoung (off chromium)
2014/09/08 23:18:47
I think the full NaCl header guards are:
NATIVE_C
dbrazdil
2014/09/09 00:57:52
Done. (Lint said it was this but I see you're righ
| |
8 #define SRC_INCLUDE_MINSFI_H_ | |
9 | |
10 #include <stdbool.h> | |
11 #include <stdint.h> | |
12 | |
13 /* | |
14 * Allocates a memory region for the sandbox and initializes it. Returns TRUE | |
15 * if it was successful or if the sandbox has already been initialized. | |
16 */ | |
17 bool MinsfiInitializeSandbox(void); | |
18 | |
19 /* | |
20 * Invokes the entry function of the sandbox and returns the exit value | |
21 * returned by the sandbox. Returns EXIT_FAILURE if sandbox cannot be invoked, | |
22 * e.g. because it has not been initialized. | |
23 */ | |
24 int MinsfiInvokeSandbox(void); | |
25 | |
26 /* | |
27 * Destroys the MinSFI address subspace if there is one. Returns FALSE if | |
28 * a subspace exists but could not be destroyed. | |
29 */ | |
30 bool MinsfiDestroySandbox(void); | |
31 | |
32 #endif // SRC_INCLUDE_MINSFI_H_ | |
OLD | NEW |