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