diff options
Diffstat (limited to 'src/cljs/gnunet_web/core.cljs')
-rw-r--r-- | src/cljs/gnunet_web/core.cljs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cljs/gnunet_web/core.cljs b/src/cljs/gnunet_web/core.cljs index bee9e22..22d5a43 100644 --- a/src/cljs/gnunet_web/core.cljs +++ b/src/cljs/gnunet_web/core.cljs @@ -17,7 +17,8 @@ (ns gnunet-web.core (:require [gnunet-web.service :as service] ;; leave this here [gnunet-web.util :refer [get-object read-memory register-object - unregister-object]])) + unregister-object]]) + (:require-macros [fence.core :refer [+++]])) (def core-handle (js/_GNUNET_CORE_connect 1 ; const struct GNUNET_CONFIGURATION_Handle *cfg @@ -37,7 +38,7 @@ (callback {:peer (vec (read-memory peer-id-pointer 32)) :state state}))) -(def monitor-callback-pointer (js/Runtime.addFunction monitor-callback)) +(def monitor-callback-pointer (+++ (.addFunction js/Runtime monitor-callback))) (defn monitor-peers [callback] |