Omit message factory and line numbers from generated output
[govpp.git] / examples / bin_api / af_packet / af_packet.ba.go
index 144bf74..81c2b9d 100644 (file)
@@ -1,15 +1,13 @@
 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: af_packet.api.json
+//  source: af_packet.api.json
 
 /*
-Package af_packet is a generated VPP binary API of the 'af_packet' VPP module.
+ Package af_packet is a generated from VPP binary API module 'af_packet'.
 
-It is generated from this file:
-       af_packet.api.json
+ It contains following objects:
+         8 messages
+         4 services
 
-It contains these VPP binary API objects:
-       8 messages
-       4 services
 */
 package af_packet
 
@@ -25,7 +23,6 @@ var _ = bytes.NewBuffer
 /* Messages */
 
 // AfPacketCreate represents the VPP binary API message 'af_packet_create'.
-// Generated from 'af_packet.api.json', line 4:
 //
 //            "af_packet_create",
 //            [
@@ -73,12 +70,8 @@ func (*AfPacketCreate) GetCrcString() string {
 func (*AfPacketCreate) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
-func NewAfPacketCreate() api.Message {
-       return &AfPacketCreate{}
-}
 
 // AfPacketCreateReply represents the VPP binary API message 'af_packet_create_reply'.
-// Generated from 'af_packet.api.json', line 36:
 //
 //            "af_packet_create_reply",
 //            [
@@ -115,12 +108,8 @@ func (*AfPacketCreateReply) GetCrcString() string {
 func (*AfPacketCreateReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
-func NewAfPacketCreateReply() api.Message {
-       return &AfPacketCreateReply{}
-}
 
 // AfPacketDelete represents the VPP binary API message 'af_packet_delete'.
-// Generated from 'af_packet.api.json', line 58:
 //
 //            "af_packet_delete",
 //            [
@@ -157,12 +146,8 @@ func (*AfPacketDelete) GetCrcString() string {
 func (*AfPacketDelete) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
-func NewAfPacketDelete() api.Message {
-       return &AfPacketDelete{}
-}
 
 // AfPacketDeleteReply represents the VPP binary API message 'af_packet_delete_reply'.
-// Generated from 'af_packet.api.json', line 81:
 //
 //            "af_packet_delete_reply",
 //            [
@@ -194,12 +179,8 @@ func (*AfPacketDeleteReply) GetCrcString() string {
 func (*AfPacketDeleteReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
-func NewAfPacketDeleteReply() api.Message {
-       return &AfPacketDeleteReply{}
-}
 
 // AfPacketSetL4CksumOffload represents the VPP binary API message 'af_packet_set_l4_cksum_offload'.
-// Generated from 'af_packet.api.json', line 99:
 //
 //            "af_packet_set_l4_cksum_offload",
 //            [
@@ -240,12 +221,8 @@ func (*AfPacketSetL4CksumOffload) GetCrcString() string {
 func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
-func NewAfPacketSetL4CksumOffload() api.Message {
-       return &AfPacketSetL4CksumOffload{}
-}
 
 // AfPacketSetL4CksumOffloadReply represents the VPP binary API message 'af_packet_set_l4_cksum_offload_reply'.
-// Generated from 'af_packet.api.json', line 125:
 //
 //            "af_packet_set_l4_cksum_offload_reply",
 //            [
@@ -277,12 +254,8 @@ func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string {
 func (*AfPacketSetL4CksumOffloadReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
-func NewAfPacketSetL4CksumOffloadReply() api.Message {
-       return &AfPacketSetL4CksumOffloadReply{}
-}
 
 // AfPacketDump represents the VPP binary API message 'af_packet_dump'.
-// Generated from 'af_packet.api.json', line 143:
 //
 //            "af_packet_dump",
 //            [
@@ -312,12 +285,8 @@ func (*AfPacketDump) GetCrcString() string {
 func (*AfPacketDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
-func NewAfPacketDump() api.Message {
-       return &AfPacketDump{}
-}
 
 // AfPacketDetails represents the VPP binary API message 'af_packet_details'.
-// Generated from 'af_packet.api.json', line 161:
 //
 //            "af_packet_details",
 //            [
@@ -355,9 +324,6 @@ func (*AfPacketDetails) GetCrcString() string {
 func (*AfPacketDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
-func NewAfPacketDetails() api.Message {
-       return &AfPacketDetails{}
-}
 
 /* Services */