mirror of
https://github.com/codecat/go-enet.git
synced 2025-12-08 05:59:47 +00:00
18 lines
297 B
Go
18 lines
297 B
Go
|
|
package enet
|
||
|
|
|
||
|
|
// #cgo LDFLAGS: -lenet
|
||
|
|
// #cgo windows CFLAGS: -Ienet/include/
|
||
|
|
// #cgo windows LDFLAGS: -Lenet/ -lWs2_32 -lWinmm
|
||
|
|
// #include <enet/enet.h>
|
||
|
|
import "C"
|
||
|
|
|
||
|
|
// Initialize enet
|
||
|
|
func Initialize() {
|
||
|
|
C.enet_initialize()
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deinitialize enet
|
||
|
|
func Deinitialize() {
|
||
|
|
C.enet_deinitialize()
|
||
|
|
}
|