Re-org platform APIs: move most platform APIs of iwasm to shared-lib (#45)

This commit is contained in:
wenyongh
2019-07-22 11:32:51 +08:00
committed by GitHub
parent 08ebc6c773
commit 1db5a2f697
39 changed files with 387 additions and 899 deletions

View File

@ -0,0 +1,32 @@
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _WASM_DLFCN_H
#define _WASM_DLFCN_H
#ifdef __cplusplus
extern "C" {
#endif
void *
wasm_dlsym(void *handle, const char *symbol);
#ifdef __cplusplus
}
#endif
#endif /* end of _WASM_DLFCN_H */

View File

@ -17,7 +17,7 @@
#ifndef WASM_HASHMAP_H
#define WASM_HASHMAP_H
#include "wasm_platform.h"
#include "bh_platform.h"
#ifdef __cplusplus

View File

@ -30,7 +30,7 @@
#ifndef _WASM_LOG_H
#define _WASM_LOG_H
#include "wasm_platform.h"
#include "bh_platform.h"
#ifdef __cplusplus

View File

@ -17,7 +17,7 @@
#ifndef _WASM_VECTOR_H
#define _WASM_VECTOR_H
#include "wasm_platform.h"
#include "bh_platform.h"
#ifdef __cplusplus