aboutsummaryrefslogtreecommitdiff
path: root/msg.go
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-06-17 02:14:13 -0400
committerDeterminant <ted.sybil@gmail.com>2019-06-17 02:14:13 -0400
commit1dfc133c0167fbba818b46883950bf87554f5dc1 (patch)
tree91d4244e8cd9768f4448588b45cd09e48331c73e /msg.go
parent8ac5ed4cf4518053c81122c01cd4a665aca0a549 (diff)
add unknown peer callback
Diffstat (limited to 'msg.go')
-rw-r--r--msg.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/msg.go b/msg.go
index eb02fc3..0f0267d 100644
--- a/msg.go
+++ b/msg.go
@@ -5,11 +5,11 @@ package salticidae
import "C"
import "runtime"
-type CMsg = *C.struct_msg_t
+type CMsg = *C.msg_t
type msg struct { inner CMsg }
type Msg = *msg
-func MsgFromC(ptr *C.struct_msg_t) Msg { return &msg{ inner: ptr } }
+func MsgFromC(ptr *C.msg_t) Msg { return &msg{ inner: ptr } }
func NewMsgMovedFromByteArray(opcode Opcode, _moved_payload ByteArray) Msg {
res := &msg{ inner: C.msg_new_moved_from_bytearray(C._opcode_t(opcode), _moved_payload.inner) }