Created
January 6, 2018 18:05
-
-
Save jmercouris/c25ebc01515acf239460c991a3534fbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cffi:defcallback callybacky :void ((source-object :pointer) | |
(result :pointer) | |
(user-data :pointer)) | |
(let* ((np (cffi:null-pointer)) | |
(js-result | |
(webkit2:webkit-web-view-run-javascript-finish | |
(current-view *next-interface*) result)) | |
(context (webkit2:webkit-javascript-result-get-global-context js-result)) | |
(value (webkit2:webkit-javascript-result-get-value js-result)) | |
(js-str-value (jscore:js-value-to-string-copy context value np))) | |
(print js-result) | |
(print context) | |
(print value) | |
(print js-str-value)) | |
(break) | |
nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment