Grok 20.3.2
minpf_dynamic_library.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016-2026 Grok Image Compression Inc.
3 *
4 * This source code is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License, version 3,
6 * as published by the Free Software Foundation.
7 *
8 * This source code is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Affero General Public License for more details.
12 *
13 * You should have received a copy of the GNU Affero General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 */
17
18#pragma once
19#include <plugin/minpf_common.h>
20#ifdef _WIN32
21#include <Windows.h>
22#else
23#include <dlfcn.h>
24#endif
25
26#ifdef _WIN32
27typedef HMODULE dynamic_handle_t;
28#else
29typedef void* dynamic_handle_t;
30#endif
31
32namespace grk
33{
39
40minpf_dynamic_library* minpf_load_dynamic_library(const char* path, char* error);
42void* minpf_get_symbol(minpf_dynamic_library* library, const char* symbol);
43bool minpf_get_full_path(const char* path, const void* addr, dynamic_handle_t handle,
44 char* fullPath, size_t fullPathLen);
45
46} // namespace grk
#define MINPF_MAX_PATH_LEN
Definition minpf_common.h:29
void * dynamic_handle_t
Definition minpf_dynamic_library.h:29
ResWindow.
Definition CompressedChunkCache.h:36
minpf_dynamic_library * minpf_load_dynamic_library(const char *path, char *error)
Definition minpf_dynamic_library.cpp:107
bool minpf_get_full_path(const char *path, const void *addr, dynamic_handle_t handle, char *fullPath, size_t fullPathLen)
Definition minpf_dynamic_library.cpp:50
void * minpf_get_symbol(minpf_dynamic_library *library, const char *symbol)
Definition minpf_dynamic_library.cpp:152
bool minpf_unload_dynamic_library(minpf_dynamic_library *library)
Definition minpf_dynamic_library.cpp:88
Definition minpf_dynamic_library.h:35
dynamic_handle_t handle
Definition minpf_dynamic_library.h:37
char path[MINPF_MAX_PATH_LEN]
Definition minpf_dynamic_library.h:36