status-go/geth/signals.go

17 lines
277 B
Go
Raw Normal View History

2016-11-28 18:30:25 +00:00
package geth
/*
#include <stddef.h>
#include <stdbool.h>
extern bool StatusServiceSignalEvent( const char *jsonEvent );
*/
import "C"
const (
EventLocalStorageSet = "local_storage.set"
)
func SendSignal(data []byte) {
C.StatusServiceSignalEvent(C.CString(string(data)))
}