native_library_ios.mm 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright (c) 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "base/native_library.h"
  5. #include "base/check.h"
  6. #include "base/notreached.h"
  7. #include "base/strings/string_piece.h"
  8. #include "base/strings/string_util.h"
  9. namespace base {
  10. std::string NativeLibraryLoadError::ToString() const {
  11. return message;
  12. }
  13. NativeLibrary LoadNativeLibraryWithOptions(const base::FilePath& library_path,
  14. const NativeLibraryOptions& options,
  15. NativeLibraryLoadError* error) {
  16. NOTIMPLEMENTED();
  17. if (error)
  18. error->message = "Not implemented.";
  19. return nullptr;
  20. }
  21. void UnloadNativeLibrary(NativeLibrary library) {
  22. NOTIMPLEMENTED();
  23. DCHECK(!library);
  24. }
  25. void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
  26. StringPiece name) {
  27. NOTIMPLEMENTED();
  28. return nullptr;
  29. }
  30. std::string GetNativeLibraryName(StringPiece name) {
  31. DCHECK(IsStringASCII(name));
  32. return std::string(name);
  33. }
  34. std::string GetLoadableModuleName(StringPiece name) {
  35. return GetNativeLibraryName(name);
  36. }
  37. } // namespace base