vppapigen: supports backwards compatible marking of enums 16/28616/5
authorOle Troan <ot@cisco.com>
Mon, 31 Aug 2020 11:54:47 +0000 (13:54 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 1 Sep 2020 15:10:09 +0000 (15:10 +0000)
commit6006ca85714fd2829f3e20429683f18d70943c04
treedecbc2c28588e5028cbf1667e807315dbd333f6f
parent61f49aa38e02d2f78e7033b5c97e6a90ebdecd0f
vppapigen: supports backwards compatible marking of enums

enum bar_enum {
  BAR1 = 0,
  BAR2,
  BAR3 [backwards_compatible],
  BAR4 = 9 [backwards_compatible],
};

This allows adding backwards compatible (as guaranteed by the developer) enums.
The enums marked backwards compatible are not considered in the CRC calculation.

Type: improvement
Change-Id: I6fc0c21b19e1a02cff7f5d279a0f3a32d2f8b630
Signed-off-by: Ole Troan <ot@cisco.com>
src/tools/vppapigen/vppapigen.py