Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1021)

Side by Side Diff: ppapi/nacl_irt/irt_ppapi.h

Issue 171683019: NaCl: Address some TODOs from moving PPAPI IRT interface into the Chromium repo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/proxy/irt_ppapi.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 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 #ifndef PPAPI_NACL_IRT_IRT_PPAPI_H_ 7 #ifndef PPAPI_NACL_IRT_IRT_PPAPI_H_
8 #define PPAPI_NACL_IRT_IRT_PPAPI_H_ 8 #define PPAPI_NACL_IRT_IRT_PPAPI_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 15 matching lines...) Expand all
26 * We use uintptr_t as the thread ID type because pthread_t is not 26 * We use uintptr_t as the thread ID type because pthread_t is not
27 * part of the stable ABI; a user thread library might choose an 27 * part of the stable ABI; a user thread library might choose an
28 * arbitrary size for its own pthread_t. 28 * arbitrary size for its own pthread_t.
29 */ 29 */
30 int (*thread_create)(uintptr_t* tid, 30 int (*thread_create)(uintptr_t* tid,
31 void (*func)(void* thread_argument), 31 void (*func)(void* thread_argument),
32 void* thread_argument); 32 void* thread_argument);
33 int (*thread_join)(uintptr_t tid); 33 int (*thread_join)(uintptr_t tid);
34 }; 34 };
35 35
36 /*
37 * TODO(mseaborn): Make this unconditional after the definition of the
38 * struct has been removed from the NaCl side's irt.h.
39 */
40 #if !defined(NACL_IRT_PPAPIHOOK_v0_1)
41
42 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1" 36 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1"
43 struct nacl_irt_ppapihook { 37 struct nacl_irt_ppapihook {
44 int (*ppapi_start)(const struct PP_StartFunctions*); 38 int (*ppapi_start)(const struct PP_StartFunctions*);
45 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions*); 39 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions*);
46 }; 40 };
47 41
48 #endif 42 #endif
49
50 #endif
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/irt_ppapi.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698