API参考
载入中...
搜索中...
未找到
sal_dlimpl.h
1/*
2 * This file is part of the openHiTLS project.
3 *
4 * openHiTLS is licensed under the Mulan PSL v2.
5 * You can use this software according to the terms and conditions of the Mulan PSL v2.
6 * You may obtain a copy of Mulan PSL v2 at:
7 *
8 * http://license.coscl.org.cn/MulanPSL2
9 *
10 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13 * See the Mulan PSL v2 for more details.
14 */
15
16#ifndef SAL_DLIMPL_H
17#define SAL_DLIMPL_H
18
19#include "hitls_build.h"
20#ifdef HITLS_BSL_SAL_DL
21
22#include <stdint.h>
23#include "bsl_sal.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29typedef struct {
30 BslDlOpen pfDlOpen;
31 BslDlClose pfDlClose;
32 BslDlSym pfDlSym;
33} BSL_SAL_DlCallback;
34
41int32_t SAL_DlCallBack_Ctrl(BSL_SAL_CB_FUNC_TYPE type, void *funcCb);
42
43#if defined(HITLS_BSL_SAL_LINUX) || defined(HITLS_BSL_SAL_DARWIN)
50int32_t SAL_LoadLib(const char *fileName, void **handle);
51
57int32_t SAL_UnLoadLib(void *handle);
58
66int32_t SAL_GetFunc(void *handle, const char *funcName, void **func);
67#endif
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* HITLS_BSL_SAL_DL */
74#endif // SAL_DLIMPL_H
int32_t(* BslDlSym)(void *handle, const char *funcName, void **func)
Get function symbol from dynamic library.
定义 bsl_sal.h:1835
int32_t(* BslDlOpen)(const char *fileName, void **handle)
Loading dynamic libraries.
定义 bsl_sal.h:1800
int32_t(* BslDlClose)(void *handle)
Close dynamic library.
定义 bsl_sal.h:1816