| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* Last generated from IDL: Sun Sep 16 10:28:00 2012. */ | 6 /* Last generated from IDL: Wed Sep 19 20:53:31 2012. */ |
| 7 #include "ppapi/generators/pnacl_shim.h" | 7 #include "ppapi/generators/pnacl_shim.h" |
| 8 | 8 |
| 9 #include "ppapi/c/ppb.h" | 9 #include "ppapi/c/ppb.h" |
| 10 #include "ppapi/c/dev/ppb_audio_input_dev.h" | 10 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
| 11 #include "ppapi/c/dev/ppb_buffer_dev.h" | 11 #include "ppapi/c/dev/ppb_buffer_dev.h" |
| 12 #include "ppapi/c/dev/ppb_console_dev.h" | 12 #include "ppapi/c/dev/ppb_console_dev.h" |
| 13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | 13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" |
| 14 #include "ppapi/c/dev/ppb_device_ref_dev.h" | 14 #include "ppapi/c/dev/ppb_device_ref_dev.h" |
| 15 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 15 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
| 16 #include "ppapi/c/dev/ppb_find_dev.h" | 16 #include "ppapi/c/dev/ppb_find_dev.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #include "ppapi/c/trusted/ppb_audio_trusted.h" | 90 #include "ppapi/c/trusted/ppb_audio_trusted.h" |
| 91 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 91 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
| 92 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" | 92 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" |
| 93 #include "ppapi/c/trusted/ppb_buffer_trusted.h" | 93 #include "ppapi/c/trusted/ppb_buffer_trusted.h" |
| 94 #include "ppapi/c/trusted/ppb_char_set_trusted.h" | 94 #include "ppapi/c/trusted/ppb_char_set_trusted.h" |
| 95 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" | 95 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" |
| 96 #include "ppapi/c/trusted/ppb_file_io_trusted.h" | 96 #include "ppapi/c/trusted/ppb_file_io_trusted.h" |
| 97 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 97 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 98 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 98 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
| 99 | 99 |
| 100 |
| 101 /* The PNaCl PPAPI shims are only needed on x86-64. */ |
| 102 #if defined(__x86_64__) |
| 103 |
| 100 /* Use local strcmp to avoid dependency on libc. */ | 104 /* Use local strcmp to avoid dependency on libc. */ |
| 101 static int mystrcmp(const char* s1, const char *s2) { | 105 static int mystrcmp(const char* s1, const char *s2) { |
| 102 while((*s1 && *s2) && (*s1++ == *s2++)); | 106 while((*s1 && *s2) && (*s1++ == *s2++)); |
| 103 return *(--s1) - *(--s2); | 107 return *(--s1) - *(--s2); |
| 104 } | 108 } |
| 105 | 109 |
| 106 /* BEGIN Declarations for all Wrapper Infos */ | 110 /* BEGIN Declarations for all Wrapper Infos */ |
| 107 | 111 |
| 108 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0; | 112 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0; |
| 109 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0; | 113 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0; |
| (...skipping 4942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5052 if (NULL == iface) return NULL; | 5056 if (NULL == iface) return NULL; |
| 5053 wrapper->real_iface = iface; | 5057 wrapper->real_iface = iface; |
| 5054 } | 5058 } |
| 5055 | 5059 |
| 5056 if (wrapper->wrapped_iface) { | 5060 if (wrapper->wrapped_iface) { |
| 5057 return wrapper->wrapped_iface; | 5061 return wrapper->wrapped_iface; |
| 5058 } else { | 5062 } else { |
| 5059 return wrapper->real_iface; | 5063 return wrapper->real_iface; |
| 5060 } | 5064 } |
| 5061 } | 5065 } |
| 5066 |
| 5067 #endif |
| OLD | NEW |