Ole,

Can we clarify the .api (syntax) so that enums are separate from flags?
Today, everything is rendered (at least in Python) as an
(enum|aenum).IntFlag.

Here is a sample of how that an enum looks like in python:

class rx_mode(enum.IntFlag):   # u32:
    UNKNOWN = 0
    POLLING = 1
    INTERRUPT = 2
    ADAPTIVE = 3
    DEFAULT = 4


What is 3?  Is it ADAPTIVE, or is it ( POLLING | INTERRUPT)  ?  I can
*assume* that if the block has a 0 value, I can downcast the class, but it
seems like a kludge.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18098): https://lists.fd.io/g/vpp-dev/message/18098
Mute This Topic: https://lists.fd.io/mt/78367407/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to