hkstreamer/cwrapper.go

20 lines
389 B
Go
Raw Normal View History

2023-03-29 19:03:49 +08:00
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
}