quic/qbox
Loading...
Searching...
No Matches
qemu-components
common
include
libqemu-cxx
loader.h
1
/*
2
* This file is part of libqemu-cxx
3
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All Rights Reserved.
4
* Author: GreenSocs 2021
5
*
6
* SPDX-License-Identifier: BSD-3-Clause
7
*/
8
9
#pragma once
10
11
#include <memory>
12
13
namespace
qemu {
14
class
LibraryIface
15
{
16
public
:
17
virtual
bool
symbol_exists(
const
char
*
symbol
) = 0;
18
virtual
void
* get_symbol(
const
char
*
symbol
) = 0;
19
};
20
21
class
LibraryLoaderIface
22
{
23
public
:
24
using
LibraryIfacePtr = std::shared_ptr<LibraryIface>;
25
26
virtual
LibraryIfacePtr load_library(
const
char
*
lib_name
) = 0;
27
virtual
const
char
* get_lib_ext() = 0;
28
virtual
const
char
* get_last_error() = 0;
29
30
virtual
~LibraryLoaderIface
() =
default
;
31
};
32
33
LibraryLoaderIface
* get_default_lib_loader();
34
35
}
// namespace qemu
QemuTargetSocket
Definition
target.h:160
qemu::LibraryIface
Definition
loader.h:15
qemu::LibraryLoaderIface
Definition
loader.h:22
Generated by
1.9.8