IT WORKS
This commit is contained in:
parent
8fad6195b7
commit
595946a4a2
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
/_obj
|
/_obj
|
||||||
*.o
|
*.o
|
||||||
|
*.a
|
||||||
|
*.so
|
||||||
tsgo_export.h
|
tsgo_export.h
|
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
// #cgo CFLAGS: -I../../ts3client-pluginsdk/include -I../c
|
// #cgo CFLAGS: -I../../ts3client-pluginsdk/include -I../c
|
||||||
|
// #cgo LDFLAGS: -Wl,-unresolved-symbols=ignore-all
|
||||||
// #include <stdlib.h>
|
// #include <stdlib.h>
|
||||||
// #include "teamspeak/public_errors.h"
|
// #include "teamspeak/public_errors.h"
|
||||||
// #include "teamspeak/public_errors_rare.h"
|
// #include "teamspeak/public_errors_rare.h"
|
||||||
@ -8,7 +9,7 @@ package main
|
|||||||
// #include "teamspeak/public_rare_definitions.h"
|
// #include "teamspeak/public_rare_definitions.h"
|
||||||
// #include "teamspeak/clientlib_publicdefinitions.h"
|
// #include "teamspeak/clientlib_publicdefinitions.h"
|
||||||
// #include "plugin_definitions.h"
|
// #include "plugin_definitions.h"
|
||||||
// #include "ts3FunctionsWrapper.h"
|
// extern void Ts3FncPrintMessage(uint64 serverConnectionHandlerID, const char* message, enum PluginMessageTarget messageTarget);
|
||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
tsgo "./tsgo"
|
tsgo "./tsgo"
|
||||||
@ -60,7 +61,7 @@ func GoTs3pluginShutdown() {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//export GoTs3onClientPokeEvent
|
//export GoTs3onClientPokeEvent
|
||||||
func GoTs3onClientPokeEvent(serverConnectionHandlerID uint64, fromClientID C.anyID, pokerName *C.char, pokerUniqueIdentity *C.char, message *C.char, ffIgnored int) int {
|
func GoTs3onClientPokeEvent(serverConnectionHandlerID C.uint64, fromClientID C.anyID, pokerName *C.char, pokerUniqueIdentity *C.char, message *C.char, ffIgnored int) C.int {
|
||||||
C.Ts3FncPrintMessage(serverConnectionHandlerID, C.CString(""), C.PLUGIN_SERVER)
|
C.Ts3FncPrintMessage(serverConnectionHandlerID, C.CString("Ayyyy"), C.PLUGIN_SERVER)
|
||||||
return 0
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user