| Index: src/untrusted/irt/shim_dummy.c
|
| ===================================================================
|
| --- src/untrusted/irt/shim_dummy.c (revision 0)
|
| +++ src/untrusted/irt/shim_dummy.c (revision 0)
|
| @@ -0,0 +1,36 @@
|
| +/*
|
| + * Copyright (c) 2012 The Native Client Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +/*
|
| + * This module satisfies link dependencies for platforms where we do not link
|
| + * the x86-64 specific auto-genenerated shimming code into the IRT.
|
| + * Furthermore, this code is functional in the sense that if we decide
|
| + * to link the new interception code from src/untrusted/pnacl_irt_shim
|
| + * into any nexe (not just x86-64) the nexe should work with an
|
| + * IRT containing this code.
|
| + * It also roughly documents the API of the auto-generated shimming code.
|
| + */
|
| +
|
| +#include "ppapi/generators/pnacl_shim.h"
|
| +
|
| +static PPB_GetInterface g_real_PPB_GetInterface = 0;
|
| +static PPP_GetInterface_Type g_real_PPP_GetInterface = 0;
|
| +
|
| +void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) {
|
| + g_real_PPB_GetInterface = real;
|
| +}
|
| +
|
| +void __set_real_Pnacl_PPPGetInterface(PPP_GetInterface_Type real) {
|
| + g_real_PPP_GetInterface = real;
|
| +}
|
| +
|
| +const void *__Pnacl_PPBGetInterface(const char *name) {
|
| + return g_real_PPB_GetInterface(name);
|
| +}
|
| +
|
| +const void *__Pnacl_PPPGetInterface(const char *name) {
|
| + return g_real_PPP_GetInterface(name);
|
| +}
|
|
|
| Property changes on: src/untrusted/irt/shim_dummy.c
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|