go-enet/enetc.go

18 lines
317 B
Go
Raw Normal View History

2020-08-01 19:07:09 +02:00
package enet
2020-08-02 15:27:04 +02:00
// #cgo !windows pkg-config: libenet
2020-08-01 19:07:09 +02:00
// #cgo windows CFLAGS: -Ienet/include/
2020-08-02 15:27:04 +02:00
// #cgo windows LDFLAGS: -Lenet/ -lenet -lWs2_32 -lWinmm
2020-08-01 19:07:09 +02:00
// #include <enet/enet.h>
import "C"
// Initialize enet
func Initialize() {
C.enet_initialize()
}
// Deinitialize enet
func Deinitialize() {
C.enet_deinitialize()
}