OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium 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 #include <stddef.h> |
7 #include <stdlib.h> | 8 #include <stdlib.h> |
8 #include <string.h> | 9 #include <string.h> |
9 #include <unistd.h> | 10 #include <unistd.h> |
10 | 11 |
11 #include "native_client/src/include/elf32.h" | 12 #include "native_client/src/include/elf32.h" |
12 #include "native_client/src/include/elf_auxv.h" | 13 #include "native_client/src/include/elf_auxv.h" |
13 #include "native_client/src/untrusted/irt/irt.h" | 14 #include "native_client/src/untrusted/irt/irt.h" |
14 #include "ppapi/nacl_irt/public/irt_ppapi.h" | 15 #include "ppapi/nacl_irt/public/irt_ppapi.h" |
15 #include "ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h" | 16 #include "ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h" |
16 #include "ppapi/native_client/src/untrusted/irt_stub/thread_creator.h" | 17 #include "ppapi/native_client/src/untrusted/irt_stub/thread_creator.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 63 |
63 struct nacl_irt_ppapihook hooks; | 64 struct nacl_irt_ppapihook hooks; |
64 if (sizeof(hooks) != query_func(NACL_IRT_PPAPIHOOK_v0_1, | 65 if (sizeof(hooks) != query_func(NACL_IRT_PPAPIHOOK_v0_1, |
65 &hooks, sizeof(hooks))) | 66 &hooks, sizeof(hooks))) |
66 fatal_error("PpapiPluginStart: PPAPI hooks not found\n"); | 67 fatal_error("PpapiPluginStart: PPAPI hooks not found\n"); |
67 | 68 |
68 __nacl_register_thread_creator(&hooks); | 69 __nacl_register_thread_creator(&hooks); |
69 | 70 |
70 return hooks.ppapi_start(funcs); | 71 return hooks.ppapi_start(funcs); |
71 } | 72 } |
OLD | NEW |