quic/qbox
Loading...
Searching...
No Matches
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
13namespace qemu {
15{
16public:
17 virtual bool symbol_exists(const char* symbol) = 0;
18 virtual void* get_symbol(const char* symbol) = 0;
19};
20
22{
23public:
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
33LibraryLoaderIface* get_default_lib_loader();
34
35} // namespace qemu
Definition target.h:160
Definition loader.h:15
Definition loader.h:22