diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-22 20:23:11 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-22 20:23:11 +0800 |
commit | 4051c0333f43765a7414a4e0e8ac51e7148b0646 (patch) | |
tree | 87c3637424820a681b88723bc666f3d01c069e82 /cmd/mist/gui.go | |
parent | e42517754ac2912b6d3ca78a34b8aeadf8805906 (diff) | |
download | go-tangerine-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar go-tangerine-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.gz go-tangerine-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.bz2 go-tangerine-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.lz go-tangerine-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.xz go-tangerine-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.zst go-tangerine-4051c0333f43765a7414a4e0e8ac51e7148b0646.zip |
Added whisper js api
Diffstat (limited to 'cmd/mist/gui.go')
-rw-r--r-- | cmd/mist/gui.go | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/cmd/mist/gui.go b/cmd/mist/gui.go index e858d7c61..1152f0dcd 100644 --- a/cmd/mist/gui.go +++ b/cmd/mist/gui.go @@ -43,38 +43,6 @@ import ( "gopkg.in/qml.v1" ) -/* -func LoadExtension(path string) (uintptr, error) { - lib, err := ffi.NewLibrary(path) - if err != nil { - return 0, err - } - - so, err := lib.Fct("sharedObject", ffi.Pointer, nil) - if err != nil { - return 0, err - } - - ptr := so() - - err = lib.Close() - if err != nil { - return 0, err - } - - return ptr.Interface().(uintptr), nil -} -*/ -/* - vec, errr := LoadExtension("/Users/jeffrey/Desktop/build-libqmltest-Desktop_Qt_5_2_1_clang_64bit-Debug/liblibqmltest_debug.dylib") - fmt.Printf("Fetched vec with addr: %#x\n", vec) - if errr != nil { - fmt.Println(errr) - } else { - context.SetVar("vec", (unsafe.Pointer)(vec)) - } -*/ - var guilogger = logger.NewLogger("GUI") type Gui struct { @@ -535,3 +503,35 @@ func (gui *Gui) privateKey() string { func (gui *Gui) address() []byte { return gui.eth.KeyManager().Address() } + +/* +func LoadExtension(path string) (uintptr, error) { + lib, err := ffi.NewLibrary(path) + if err != nil { + return 0, err + } + + so, err := lib.Fct("sharedObject", ffi.Pointer, nil) + if err != nil { + return 0, err + } + + ptr := so() + + err = lib.Close() + if err != nil { + return 0, err + } + + return ptr.Interface().(uintptr), nil +} +*/ +/* + vec, errr := LoadExtension("/Users/jeffrey/Desktop/build-libqmltest-Desktop_Qt_5_2_1_clang_64bit-Debug/liblibqmltest_debug.dylib") + fmt.Printf("Fetched vec with addr: %#x\n", vec) + if errr != nil { + fmt.Println(errr) + } else { + context.SetVar("vec", (unsafe.Pointer)(vec)) + } +*/ |