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

Side by Side Diff: plugin/cross/main.cc

Issue 160317: linux: unexport as many symbols as possible (Closed)
Patch Set: Created 11 years, 4 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
« no previous file with comments | « plugin/cross/main.h ('k') | plugin/linux/main_linux.cc » ('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 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 return NPERR_GENERIC_ERROR; 141 return NPERR_GENERIC_ERROR;
142 } 142 }
143 } // namespace o3d 143 } // namespace o3d
144 144
145 #if defined(O3D_INTERNAL_PLUGIN) 145 #if defined(O3D_INTERNAL_PLUGIN)
146 namespace o3d { 146 namespace o3d {
147 #else 147 #else
148 extern "C" { 148 extern "C" {
149 #endif 149 #endif
150 150
151 NPError OSCALL NP_GetEntryPoints(NPPluginFuncs *pluginFuncs) { 151 NPError EXPORT_SYMBOL OSCALL NP_GetEntryPoints(NPPluginFuncs *pluginFuncs) {
152 HANDLE_CRASHES; 152 HANDLE_CRASHES;
153 pluginFuncs->version = 11; 153 pluginFuncs->version = 11;
154 pluginFuncs->size = sizeof(*pluginFuncs); 154 pluginFuncs->size = sizeof(*pluginFuncs);
155 pluginFuncs->newp = o3d::NPP_New; 155 pluginFuncs->newp = o3d::NPP_New;
156 pluginFuncs->destroy = o3d::NPP_Destroy; 156 pluginFuncs->destroy = o3d::NPP_Destroy;
157 pluginFuncs->setwindow = o3d::NPP_SetWindow; 157 pluginFuncs->setwindow = o3d::NPP_SetWindow;
158 pluginFuncs->newstream = o3d::NPP_NewStream; 158 pluginFuncs->newstream = o3d::NPP_NewStream;
159 pluginFuncs->destroystream = o3d::NPP_DestroyStream; 159 pluginFuncs->destroystream = o3d::NPP_DestroyStream;
160 pluginFuncs->asfile = o3d::NPP_StreamAsFile; 160 pluginFuncs->asfile = o3d::NPP_StreamAsFile;
161 pluginFuncs->writeready = o3d::NPP_WriteReady; 161 pluginFuncs->writeready = o3d::NPP_WriteReady;
162 pluginFuncs->write = o3d::NPP_Write; 162 pluginFuncs->write = o3d::NPP_Write;
163 pluginFuncs->print = o3d::NPP_Print; 163 pluginFuncs->print = o3d::NPP_Print;
164 pluginFuncs->event = o3d::NPP_HandleEvent; 164 pluginFuncs->event = o3d::NPP_HandleEvent;
165 pluginFuncs->urlnotify = o3d::NPP_URLNotify; 165 pluginFuncs->urlnotify = o3d::NPP_URLNotify;
166 pluginFuncs->getvalue = o3d::NPP_GetValue; 166 pluginFuncs->getvalue = o3d::NPP_GetValue;
167 pluginFuncs->setvalue = o3d::NPP_SetValue; 167 pluginFuncs->setvalue = o3d::NPP_SetValue;
168 168
169 return NPERR_NO_ERROR; 169 return NPERR_NO_ERROR;
170 } 170 }
171 171
172 char *NP_GetMIMEDescription(void) { 172 char * EXPORT_SYMBOL NP_GetMIMEDescription(void) {
173 return O3D_PLUGIN_MIME_TYPE "::O3D MIME"; 173 return O3D_PLUGIN_MIME_TYPE "::O3D MIME";
174 } 174 }
175 175
176 } // namespace o3d / extern "C" 176 } // namespace o3d / extern "C"
177 177
178 #if !defined(O3D_INTERNAL_PLUGIN) 178 #if !defined(O3D_INTERNAL_PLUGIN)
179 extern "C" { 179 extern "C" {
180 NPError NP_GetValue(void *instance, NPPVariable variable, void *value) { 180 NPError EXPORT_SYMBOL NP_GetValue(void *instance, NPPVariable variable,
181 void *value) {
181 return o3d::NP_GetValue(instance, variable, value); 182 return o3d::NP_GetValue(instance, variable, value);
182 } 183 }
183 } 184 }
184 #endif 185 #endif
OLDNEW
« no previous file with comments | « plugin/cross/main.h ('k') | plugin/linux/main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698