blob: 578240eeeadc5b1393f6147c8258ae2a8d8b64de [file] [log] [blame]
jfroy32be1d412015-04-01 17:10:291// 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
5#include "base/native_library.h"
6
7#include "base/logging.h"
8
thestig02c965b2016-06-14 18:52:239#include "base/strings/string_util.h"
10
jfroy32be1d412015-04-01 17:10:2911namespace base {
12
13std::string NativeLibraryLoadError::ToString() const {
14 return message;
15}
16
17// static
rockot596a0dd2016-08-26 00:57:5118NativeLibrary LoadNativeLibraryWithOptions(const base::FilePath& library_path,
19 const NativeLibraryOptions& options,
20 NativeLibraryLoadError* error) {
jfroy32be1d412015-04-01 17:10:2921 NOTIMPLEMENTED();
xhwang6a01b392015-11-10 07:48:3022 if (error)
23 error->message = "Not implemented.";
jfroy32be1d412015-04-01 17:10:2924 return nullptr;
25}
26
27// static
28void UnloadNativeLibrary(NativeLibrary library) {
29 NOTIMPLEMENTED();
30 DCHECK(!library);
31}
32
33// static
34void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
thestige38fbd62016-06-10 21:54:4035 StringPiece name) {
jfroy32be1d412015-04-01 17:10:2936 NOTIMPLEMENTED();
37 return nullptr;
38}
39
40// static
thestig02c965b2016-06-14 18:52:2341std::string GetNativeLibraryName(StringPiece name) {
42 DCHECK(IsStringASCII(name));
thestige38fbd62016-06-10 21:54:4043 return name.as_string();
jfroy32be1d412015-04-01 17:10:2944}
45
46} // namespace base