OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2010 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can | |
4 * be found in the LICENSE file. | |
5 */ | |
6 | |
7 // Routines for determining the most appropriate NaCl executable for | |
8 // the current CPU's architecture. | |
9 | |
10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_NEXE_ARCH_H_ | |
11 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_NEXE_ARCH_H_ | |
12 | |
13 #include "native_client/src/include/nacl_string.h" | |
14 | |
15 namespace plugin { | |
16 | |
17 // On success, Parses the <embed nexes="..."> attribute and determines | |
18 // the returns the URL of the nexe module appropriate for the | |
19 // NaCl sandbox implemented by the installed sel_ldr. | |
20 // | |
21 // On success, true is returned and |*result| is updated with the URL. | |
22 // On failure, false is returned, and |*result| is updated with an | |
23 // informative error message. | |
24 extern bool GetNexeURL(const char* nexes_attr, nacl::string* result); | |
25 | |
26 } // namespace plugin | |
27 | |
28 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_NEXE_ARCH_H_ | |
OLD | NEW |