| 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 _NACL_SPAWN_NACL_MAIN_H_ | |
| 8 #define _NACL_SPAWN_NACL_MAIN_H_ | |
| 9 | |
| 10 #include <spawn.h> | |
| 11 | |
| 12 #ifdef __cplusplus | |
| 13 extern "C" { | |
| 14 #endif | |
| 15 | |
| 16 /* | |
| 17 * Entry point expected by libcli_main.a | |
| 18 */ | |
| 19 extern int nacl_main(int argc, char* argv[]); | |
| 20 | |
| 21 /* | |
| 22 * Untar a startup bundle to a particular root. | |
| 23 * | |
| 24 * NOTE: This lives in libcli_main.a | |
| 25 * Args: | |
| 26 * arg0: The contents of argv[0], used to determine relative tar location. | |
| 27 * tarfile: The name of a tarfile to extract. | |
| 28 * root: The absolute path to extract the startup tar file to. | |
| 29 */ | |
| 30 extern int nacl_startup_untar( | |
| 31 const char* argv0, const char* tarfile, const char* root); | |
| 32 | |
| 33 #ifdef __cplusplus | |
| 34 } | |
| 35 #endif | |
| 36 | |
| 37 #endif | |
| OLD | NEW |