mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-11 03:50:05 +03:00
0fd0d2cf48
* add webview-x code * add logic for json_escape function * fix warning * merge edge changes
32 lines
750 B
C++
32 lines
750 B
C++
#include "webview-edge.h"
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
void wrapper_webview_free(webview_t w)
|
|
{
|
|
webview_destroy(w);
|
|
}
|
|
|
|
webview_t wrapper_webview_new(const char *title, const char *url, int width, int height, int resizable, int debug, webview_external_invoke_cb_t external_invoke_cb, void *userdata)
|
|
{
|
|
webview_t w = webview_create(external_invoke_cb, title, width, height, resizable, debug);
|
|
webview_set_userdata(w, userdata);
|
|
webview_navigate(w, url);
|
|
return w;
|
|
}
|
|
|
|
void *wrapper_webview_get_userdata(webview_t w)
|
|
{
|
|
return webview_get_userdata(w);
|
|
}
|
|
|
|
void webview_exit(webview_t w)
|
|
{
|
|
webview_terminate(w);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |