| Index: base/native_library.h
|
| ===================================================================
|
| --- base/native_library.h (revision 95578)
|
| +++ base/native_library.h (working copy)
|
| @@ -9,7 +9,7 @@
|
| // This file defines a cross-platform "NativeLibrary" type which represents
|
| // a loadable module.
|
|
|
| -#include "base/base_api.h"
|
| +#include "base/base_export.h"
|
| #include "build/build_config.h"
|
|
|
| #if defined(OS_WIN)
|
| @@ -55,8 +55,8 @@
|
| // you're done. Returns NULL on failure.
|
| // If |err| is not NULL, it may be filled in with an error message on
|
| // error.
|
| -BASE_API NativeLibrary LoadNativeLibrary(const FilePath& library_path,
|
| - std::string* error);
|
| +BASE_EXPORT NativeLibrary LoadNativeLibrary(const FilePath& library_path,
|
| + std::string* error);
|
|
|
| #if defined(OS_WIN)
|
| // Loads a native library from disk. Release it with UnloadNativeLibrary when
|
| @@ -64,22 +64,22 @@
|
| // This function retrieves the LoadLibrary function exported from kernel32.dll
|
| // and calls it instead of directly calling the LoadLibrary function via the
|
| // import table.
|
| -BASE_API NativeLibrary LoadNativeLibraryDynamically(
|
| +BASE_EXPORT NativeLibrary LoadNativeLibraryDynamically(
|
| const FilePath& library_path);
|
| #endif // OS_WIN
|
|
|
| // Unloads a native library.
|
| -BASE_API void UnloadNativeLibrary(NativeLibrary library);
|
| +BASE_EXPORT void UnloadNativeLibrary(NativeLibrary library);
|
|
|
| // Gets a function pointer from a native library.
|
| -BASE_API void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
|
| - const char* name);
|
| +BASE_EXPORT void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
|
| + const char* name);
|
|
|
| // Returns the full platform specific name for a native library.
|
| // For example:
|
| // "mylib" returns "mylib.dll" on Windows, "libmylib.so" on Linux,
|
| // "mylib.dylib" on Mac.
|
| -BASE_API string16 GetNativeLibraryName(const string16& name);
|
| +BASE_EXPORT string16 GetNativeLibraryName(const string16& name);
|
|
|
| } // namespace base
|
|
|
|
|