aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-prologue.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-09-11 16:59:40 +0000
committerstephan <stephan@noemail.net>2022-09-11 16:59:40 +0000
commit73079dba00f879be162b601d074cca978dc94604 (patch)
treec52d477e5e18713ef0a860b9f134221b057bc409 /ext/wasm/api/sqlite3-api-prologue.js
parent2a91126d761eb0cc9e4dc01f7e7d9e620178910b (diff)
downloadsqlite-73079dba00f879be162b601d074cca978dc94604.tar.gz
sqlite-73079dba00f879be162b601d074cca978dc94604.zip
Minor cleanups and documentation in the wasm pieces.
FossilOrigin-Name: 4e6ce329872eb733ba2f7f7879747c52761ae97790fd8ed169a25a79854cc3d9
Diffstat (limited to 'ext/wasm/api/sqlite3-api-prologue.js')
-rw-r--r--ext/wasm/api/sqlite3-api-prologue.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js
index d991d6f27..7959d047c 100644
--- a/ext/wasm/api/sqlite3-api-prologue.js
+++ b/ext/wasm/api/sqlite3-api-prologue.js
@@ -649,9 +649,7 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
["sqlite3_value_text", "string", "*"],
["sqlite3_value_type", "int", "*"],
["sqlite3_vfs_find", "*", "string"],
- ["sqlite3_vfs_register", "int", "*", "int"],
- ["sqlite3_wasm_vfs_unlink", "int", "string"],
- ["sqlite3_wasm__emjs_test", "int", "int"]
+ ["sqlite3_vfs_register", "int", "*", "int"]
]/*capi.wasm.bindingSignatures*/;
if(false && capi.wasm.compileOptionUsed('SQLITE_ENABLE_NORMALIZE')){
@@ -673,6 +671,15 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
["sqlite3_total_changes64", "i64", ["sqlite3*"]]
];
+ /**
+ Functions which are intended solely for API-internal use by the
+ WASM components, not client code. These get installed into
+ capi.wasm.
+ */
+ capi.wasm.bindingSignatures.wasm = [
+ ["sqlite3_wasm_vfs_unlink", "int", "string"]
+ ];
+
/** State for sqlite3_web_persistent_dir(). */
let __persistentDir;
/**