aboutsummaryrefslogtreecommitdiff
path: root/src/cljs/gnunet_web/filesharing.cljs
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2020-01-19 18:44:45 -0600
committerDavid Barksdale <amatus@amat.us>2020-01-19 18:44:45 -0600
commit421d0471e8b1a9bb21d6cd25892a3c2b3b8af5bc (patch)
tree2a04d8d15dafcbcc5b224b56c3e2a55679276758 /src/cljs/gnunet_web/filesharing.cljs
parenta08675381220cadf62cede4017177f921e4e215b (diff)
Update emscripten to 1.39.6
Diffstat (limited to 'src/cljs/gnunet_web/filesharing.cljs')
-rw-r--r--src/cljs/gnunet_web/filesharing.cljs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cljs/gnunet_web/filesharing.cljs b/src/cljs/gnunet_web/filesharing.cljs
index 3c67a3d..0019c6a 100644
--- a/src/cljs/gnunet_web/filesharing.cljs
+++ b/src/cljs/gnunet_web/filesharing.cljs
@@ -36,7 +36,7 @@
(defn uri-pointer-to-string
[uri-pointer]
(let [uri-string-pointer (js/_GNUNET_FS_uri_to_string uri-pointer)
- uri-string (js/Pointer_stringify uri-string-pointer)]
+ uri-string (js/UTF8ToString uri-string-pointer)]
(js/_free uri-string-pointer)
uri-string))
@@ -52,7 +52,7 @@
[metadata]
(let [uri-pointer (js/_GNUNET_FS_uri_ksk_create_from_meta_data metadata)
keywords-pointer (js/_GNUNET_FS_uri_ksk_to_string_fancy uri-pointer)
- keywords (js/Pointer_stringify keywords-pointer)]
+ keywords (js/UTF8ToString keywords-pointer)]
(js/_free keywords-pointer)
(js/_GNUNET_FS_uri_destroy uri-pointer)
keywords))
@@ -61,13 +61,13 @@
[cls plugin-name type format mime-type data data-size]
(let [metadata (get-object cls)]
(swap! metadata conj
- {:plugin-name (js/Pointer_stringify plugin-name)
+ {:plugin-name (js/UTF8ToString plugin-name)
:type type
:format format
- :mime-type (js/Pointer_stringify mime-type)
+ :mime-type (js/UTF8ToString mime-type)
:data (if (or (= format e/format-utf8)
(= format e/format-string))
- (js/Pointer_stringify data)
+ (js/UTF8ToString data)
(read-memory data data-size))})))
(def metadata-iterator-pointer