hkstreamer/cwrapper.go

20 lines
389 B
Go

package main
/*
#
#include "include/HkStreamer.h"
*/
import "C"
// type HkLoginInfo C.LoginInfo
// type StreamDate C.StreamDate
// type StreamCon C.StreamCon
func makeLoginInfo(deviceAddr string, user string, password string) C.LoginInfo {
ret := C.LoginInfo{}
ret.sDeviceAddress = C.CString(deviceAddr)
ret.sUser = C.CString(user)
ret.sPassword = C.CString(password)
return ret
}