diff options
author | 2018-08-23 22:51:56 +0200 | |
---|---|---|
committer | 2018-08-24 12:43:05 +0200 | |
commit | 6b350c65fe0ec845cecf58bfb41ffc63dc9c04f7 (patch) | |
tree | 6255495854f43ec2f2d11f88990369aadb48db3f /adapter/adapter.go | |
parent | 892683bef86cacc2ccda2b4df2b079171bd92164 (diff) |
Simplify subscribing to events and fix events
- there is no need for sending subscription requests through channels,
since all the messages are registered and no communication with VPP
is needed
Change-Id: Ibc29957be02a32e26309f66c369a071559b822a9
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'adapter/adapter.go')
-rw-r--r-- | adapter/adapter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/adapter.go b/adapter/adapter.go index 7d3d1e4..aa34329 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -22,7 +22,7 @@ import ( var ErrNotImplemented = errors.New("not implemented for this OS") // MsgCallback defines func signature for message callback. -type MsgCallback func(msgID uint16, context uint32, data []byte) +type MsgCallback func(msgID uint16, data []byte) // VppAdapter provides connection to VPP. It is responsible for sending and receiving of binary-encoded messages to/from VPP. type VppAdapter interface { |