diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2019-01-31 08:23:02 +0100 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2019-01-31 08:23:02 +0100 |
commit | 6476a2b64a2e1ea6c0d695127d726a348cc5c99b (patch) | |
tree | 49909ae9800e9eb9af64731141dc899accf5d2d6 /core | |
parent | 2323d3ffe6e66ea7ffa40be232aa54c1d24c8651 (diff) |
Generator improvements
- all objects are now sorted alphabetically for more consistent output
- unions now have constructor generated
- log level for warnings was changed to debug
- GetAllMessages renamed to GetRegisteredMessages
Change-Id: I976453004a2fd8b6cb95ca0acfcef56913bf8d38
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/channel.go | 2 | ||||
-rw-r--r-- | core/connection.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/channel.go b/core/channel.go index a7d95fe..5b69eab 100644 --- a/core/channel.go +++ b/core/channel.go @@ -31,7 +31,7 @@ var ( // MessageCodec provides functionality for decoding binary data to generated API messages. type MessageCodec interface { - //EncodeMsg encodes message into binary data. + // EncodeMsg encodes message into binary data. EncodeMsg(msg api.Message, msgID uint16) ([]byte, error) // DecodeMsg decodes binary-encoded data of a message into provided Message structure. DecodeMsg(data []byte, msg api.Message) error diff --git a/core/connection.go b/core/connection.go index 042a2af..08f08f5 100644 --- a/core/connection.go +++ b/core/connection.go @@ -248,7 +248,7 @@ func (c *Connection) retrieveMessageIDs() (err error) { c.msgMap[msgID] = msg } - msgs := api.GetAllMessages() + msgs := api.GetRegisteredMessages() for name, msg := range msgs { msgID, err := c.vppClient.GetMsgID(msg.GetMessageName(), msg.GetCrcString()) |