| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef BASE_NATIVE_LIBRARY_H_ | 5 #ifndef BASE_NATIVE_LIBRARY_H_ |
| 6 #define BASE_NATIVE_LIBRARY_H_ | 6 #define BASE_NATIVE_LIBRARY_H_ |
| 7 | 7 |
| 8 // This file defines a cross-platform "NativeLibrary" type which represents | 8 // This file defines a cross-platform "NativeLibrary" type which represents |
| 9 // a loadable module. | 9 // a loadable module. |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Gets a function pointer from a native library. | 59 // Gets a function pointer from a native library. |
| 60 void* GetFunctionPointerFromNativeLibrary(NativeLibrary library, | 60 void* GetFunctionPointerFromNativeLibrary(NativeLibrary library, |
| 61 const char* name); | 61 const char* name); |
| 62 | 62 |
| 63 // Returns the full platform specific name for a native library. | 63 // Returns the full platform specific name for a native library. |
| 64 // For example: | 64 // For example: |
| 65 // "mylib" returns "mylib.dll" on Windows, "libmylib.so" on Linux, | 65 // "mylib" returns "mylib.dll" on Windows, "libmylib.so" on Linux, |
| 66 // "mylib.dylib" on Mac. | 66 // "mylib.dylib" on Mac. |
| 67 string16 GetNativeLibraryName(const string16& name); | 67 string16 GetNativeLibraryName(const string16& name); |
| 68 | 68 |
| 69 string16 GetLibraryErrorMessage(); |
| 70 |
| 69 } // namespace base | 71 } // namespace base |
| 70 | 72 |
| 71 #endif // BASE_NATIVE_LIBRARY_H_ | 73 #endif // BASE_NATIVE_LIBRARY_H_ |
| OLD | NEW |