| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef __EMSCRIPTEN_INTERNAL_H__ |
| #define __EMSCRIPTEN_INTERNAL_H__ |
|
|
| #include <emscripten/em_macros.h> |
| #include <emscripten/proxying.h> |
| #include <emscripten/webaudio.h> |
| #include <emscripten/html5.h> |
| #include <emscripten/wasm_worker.h> |
|
|
| #include <signal.h> |
| #include <stdbool.h> |
| #include <stdint.h> |
| #include <sys/types.h> |
| #include <threads.h> |
| #include <time.h> |
|
|
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
|
|
| |
| |
| extern thread_local sigset_t __sig_pending; |
|
|
| _Noreturn void _abort_js(void); |
|
|
| void setThrew(uintptr_t threw, int value); |
|
|
| void* _emscripten_memcpy_bulkmem(void* __restrict__ dest, |
| const void* __restrict__ src, |
| size_t n); |
| void* _emscripten_memset_bulkmem(void* ptr, char value, size_t n); |
|
|
| void emscripten_notify_memory_growth(size_t memory_index); |
|
|
| time_t _timegm_js(struct tm* tm); |
| time_t _mktime_js(struct tm* tm); |
| void _localtime_js(time_t t, struct tm* __restrict__ tm); |
| void _gmtime_js(time_t t, struct tm* __restrict__ tm); |
|
|
| void _tzset_js(long* timezone, int* daylight, char* std_name, char* dst_name); |
|
|
| const char* emscripten_pc_get_function(uintptr_t pc); |
| const char* emscripten_pc_get_file(uintptr_t pc); |
| int emscripten_pc_get_line(uintptr_t pc); |
| int emscripten_pc_get_column(uintptr_t pc); |
|
|
| void* emscripten_builtin_mmap( |
| void* addr, size_t length, int prot, int flags, int fd, off_t offset); |
| int emscripten_builtin_munmap(void* addr, size_t length); |
|
|
| uintptr_t emscripten_stack_snapshot(void); |
| uint32_t |
| emscripten_stack_unwind_buffer(uintptr_t pc, uintptr_t* buffer, uint32_t depth); |
|
|
| bool _emscripten_get_now_is_monotonic(void); |
|
|
| void _emscripten_get_progname(char*, int); |
|
|
| |
| |
| char* strptime_l(const char* __restrict __s, |
| const char* __restrict __fmt, |
| struct tm* __tp, |
| locale_t __loc); |
|
|
| int _mmap_js(size_t length, |
| int prot, |
| int flags, |
| int fd, |
| off_t offset, |
| int* allocated, |
| void** addr); |
| int _munmap_js( |
| intptr_t addr, size_t length, int prot, int flags, int fd, off_t offset); |
| int _msync_js( |
| intptr_t addr, size_t length, int prot, int flags, int fd, off_t offset); |
|
|
| struct dso; |
|
|
| typedef void (*dlopen_callback_func)(struct dso*, void* user_data); |
|
|
| void* _dlopen_js(struct dso* handle); |
| void* _dlsym_js(struct dso* handle, const char* symbol, int* sym_index); |
| void _emscripten_dlopen_js(struct dso* handle, |
| dlopen_callback_func onsuccess, |
| dlopen_callback_func onerror, |
| void* user_data); |
| void* _dlsym_catchup_js(struct dso* handle, int sym_index); |
|
|
| int _setitimer_js(int which, double timeout); |
|
|
| |
| |
| |
| void _emscripten_dlsync_threads(); |
|
|
| #ifdef _GNU_SOURCE |
| void __call_sighandler(sighandler_t handler, int sig); |
| #endif |
|
|
| double emscripten_get_now_res(void); |
|
|
| void* emscripten_return_address(int level); |
|
|
| int _emscripten_sanitizer_use_colors(void); |
| char* _emscripten_sanitizer_get_option(const char* name); |
|
|
| void _emscripten_fs_load_embedded_files(void* ptr); |
|
|
| void _emscripten_throw_longjmp(void); |
|
|
| void _emscripten_runtime_keepalive_clear(); |
|
|
| void __handle_stack_overflow(void* addr); |
|
|
| |
| struct emscripten_fetch_t; |
| void emscripten_start_fetch(struct emscripten_fetch_t* fetch); |
| size_t _emscripten_fetch_get_response_headers_length(int32_t fetchID); |
| size_t _emscripten_fetch_get_response_headers(int32_t fetchID, char *dst, size_t dstSizeBytes); |
| void emscripten_fetch_free(unsigned int); |
|
|
| |
| |
| bool _emscripten_create_wasm_worker(emscripten_wasm_worker_t wwID, void *stackLowestAddress, uint32_t stackSize, void* pthreadPtr); |
|
|
| void _emscripten_create_audio_worklet(emscripten_wasm_worker_t wwID, EMSCRIPTEN_WEBAUDIO_T audioContext, void *stackLowestAddress, uint32_t stackSize, EmscriptenStartWebAudioWorkletCallback callback, void *userData2); |
|
|
| void __resumeException(void* exn); |
| void __cxa_call_unexpected(void* exn); |
| void llvm_eh_typeid_for(void* exn); |
|
|
| uint32_t _emscripten_lookup_name(const char *name); |
|
|
| int _emscripten_system(const char *command); |
|
|
| void _emscripten_log_formatted(int flags, const char* str); |
|
|
| EmscriptenDeviceOrientationEvent* _emscripten_get_last_deviceorientation_event(); |
| EmscriptenDeviceMotionEvent* _emscripten_get_last_devicemotion_event(); |
| EmscriptenMouseEvent* _emscripten_get_last_mouse_event(); |
|
|
| int _poll_js(void* fds, int nfds, int timeout, void* ctx, void* arg); |
|
|
| #ifdef __cplusplus |
| } |
| #endif |
|
|
| #endif |
|
|