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

Side by Side Diff: src/untrusted/irt/shim_dummy.c

Issue 10826171: Incorporate shimming into the irt (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 3 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
« src/untrusted/irt/irt_ppapi.c ('K') | « src/untrusted/irt/nacl.scons ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
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
4 * found in the LICENSE file.
5 */
6
7 /*
8 * This module satisfies link dependencies for platforms where we do not link
9 * the x86-64 specific auto-genenerated shimming code into the irt.
Mark Seaborn 2012/08/28 18:57:07 "auto-generated". "irt" -> "IRT"
10 * Furthermore, this code is functional in the sense that if we decide
11 * to link the new interception code from src/untrusted/pnacl_irt_shim
12 * into a any nexe (not just x86-64) the nexe should work with an
Mark Seaborn 2012/08/28 18:57:07 "into any nexe"
13 * irt containing this code.
Mark Seaborn 2012/08/28 18:57:07 "irt" -> "IRT"
14 * It also roughly documents the API of the auto-generated shimming code.
15 */
16
17 #include "ppapi/generators/pnacl_shim.h"
18
19 static PPB_GetInterface g_real_PPB_GetInterface = 0;
20 static PPP_GetInterface_Type g_real_PPP_GetInterface = 0;
21
22 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) {
23 g_real_PPB_GetInterface = real;
24 }
25
26 void __set_real_Pnacl_PPPGetInterface(PPP_GetInterface_Type real) {
27 g_real_PPP_GetInterface = real;
28 }
29
30 const void *__Pnacl_PPBGetInterface(const char *name) {
31 return g_real_PPB_GetInterface(name);
32 }
33
34 const void *__Pnacl_PPPGetInterface(const char *name) {
35 return g_real_PPP_GetInterface(name);
36 }
OLDNEW
« src/untrusted/irt/irt_ppapi.c ('K') | « src/untrusted/irt/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698