Pair requests with replies using sequence numbers
[govpp.git] / adapter / adapter.go
index d8f29c9..bc3a573 100644 (file)
@@ -26,11 +26,11 @@ type VppAdapter interface {
        GetMsgID(msgName string, msgCrc string) (uint16, error)
 
        // SendMsg sends a binary-encoded message to VPP.
-       SendMsg(clientID uint32, data []byte) error
+       SendMsg(context uint32, data []byte) error
 
        // SetMsgCallback sets a callback function that will be called by the adapter whenever a message comes from VPP.
        SetMsgCallback(func(context uint32, msgId uint16, data []byte))
 
-       // WaitReady returns func which waits until adapter is ready.
-       WaitReady() func() error
+       // WaitReady waits until adapter is ready.
+       WaitReady() error
 }