forked from bytecodealliance/wasm-micro-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk build tools and app framework updates (bytecodealliance#171)
- Loading branch information
Showing
30 changed files
with
564 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (C) 2019 Intel Corporation. All rights reserved. | ||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
*/ | ||
|
||
EXPORT_WASM_API(wasm_register_resource), | ||
EXPORT_WASM_API(wasm_response_send), | ||
EXPORT_WASM_API(wasm_post_request), | ||
EXPORT_WASM_API(wasm_sub_event), | ||
EXPORT_WASM_API(wasm_create_timer), | ||
EXPORT_WASM_API(wasm_timer_destroy), | ||
EXPORT_WASM_API(wasm_timer_cancel), | ||
EXPORT_WASM_API(wasm_timer_restart), | ||
EXPORT_WASM_API(wasm_get_sys_tick_ms), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (C) 2019 Intel Corporation. All rights reserved. | ||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
*/ | ||
|
||
#ifndef _REQ_RESP_API_H_ | ||
#define _REQ_RESP_API_H_ | ||
|
||
#include "bh_platform.h" | ||
#include "wasm_export.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
bool | ||
wasm_response_send(wasm_exec_env_t exec_env, | ||
int32 buffer_offset, int size); | ||
void | ||
wasm_register_resource(wasm_exec_env_t exec_env, | ||
int32 url_offset); | ||
void | ||
wasm_post_request(wasm_exec_env_t exec_env, | ||
int32 buffer_offset, int size); | ||
void | ||
wasm_sub_event(wasm_exec_env_t exec_env, | ||
int32 url_offset); | ||
|
||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* end of _REQ_RESP_API_H_ */ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (C) 2019 Intel Corporation. All rights reserved. | ||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
*/ | ||
|
||
#ifndef _TIMER_API_H_ | ||
#define _TIMER_API_H_ | ||
|
||
#include "bh_platform.h" | ||
#include "wasm_export.h" | ||
|
||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef unsigned int timer_id_t; | ||
|
||
/* | ||
* timer interfaces | ||
*/ | ||
|
||
typedef unsigned int timer_id_t; | ||
|
||
timer_id_t | ||
wasm_create_timer(wasm_exec_env_t exec_env, | ||
int interval, bool is_period, bool auto_start); | ||
void | ||
wasm_timer_destroy(wasm_exec_env_t exec_env, timer_id_t timer_id); | ||
void | ||
wasm_timer_cancel(wasm_exec_env_t exec_env, timer_id_t timer_id); | ||
void | ||
wasm_timer_restart(wasm_exec_env_t exec_env, | ||
timer_id_t timer_id, int interval); | ||
uint32 | ||
wasm_get_sys_tick_ms(wasm_exec_env_t exec_env); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* end of _TIMER_API_H_ */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.