auto init on package import

pull/338/head
Joseph Poirier 2016-03-16 06:58:01 -05:00
rodzic d3ee8dce97
commit dbca0fb0b0
2 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -44,8 +44,7 @@ var InChan = make(chan []byte, 100)
type UserCbT func(C.char, *C.uint8_t, C.int)
// Dump978Init must be the first function called in this package.
func Dump978Init() {
func init() {
C.Dump978Init((C.CallBack)(C.GetGoCb()))
}

Wyświetl plik

@ -521,6 +521,5 @@ func sdrWatcher() {
func sdrInit() {
go sdrWatcher()
go uatReader()
godump978.Dump978Init()
go godump978.ProcessDataFromChannel()
}