| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ | 7 #ifndef NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ |
| 8 #define NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ 1 | 8 #define NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ 1 |
| 9 | 9 |
| 10 #include "native_client/src/include/nacl_base.h" | 10 #include "native_client/src/include/nacl_base.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 * | 170 * |
| 171 * If this is called, it must be called before NaClChromeMainInit(), | 171 * If this is called, it must be called before NaClChromeMainInit(), |
| 172 * otherwise NaClChromeMainInit() will try to open() /dev/urandom. | 172 * otherwise NaClChromeMainInit() will try to open() /dev/urandom. |
| 173 */ | 173 */ |
| 174 void NaClChromeMainSetUrandomFd(int urandom_fd); | 174 void NaClChromeMainSetUrandomFd(int urandom_fd); |
| 175 #endif | 175 #endif |
| 176 | 176 |
| 177 /* Initialize NaCl. This must be called before NaClAppCreate(). */ | 177 /* Initialize NaCl. This must be called before NaClAppCreate(). */ |
| 178 void NaClChromeMainInit(void); | 178 void NaClChromeMainInit(void); |
| 179 | 179 |
| 180 /* Initialize non-SFI NaCl. This must be called before NaClAppCreate(). */ |
| 181 void NaClChromeMainInitForNonSfi(void); |
| 182 |
| 180 /* Create a new args struct containing default values. */ | 183 /* Create a new args struct containing default values. */ |
| 181 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); | 184 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); |
| 182 | 185 |
| 183 /* Launch NaCl. This does not return. */ | 186 /* Launch NaCl. This does not return. */ |
| 184 void NaClChromeMainStartApp(struct NaClApp *nap, | 187 void NaClChromeMainStartApp(struct NaClApp *nap, |
| 185 struct NaClChromeMainArgs *args); | 188 struct NaClChromeMainArgs *args); |
| 186 | 189 |
| 187 | 190 |
| 188 EXTERN_C_END | 191 EXTERN_C_END |
| 189 | 192 |
| 190 #endif | 193 #endif |
| OLD | NEW |