Needed by a follow-up patch, so that channels can be sorted properly.
This change does not affect the behavior of any subsystem.
Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Differential D47198
sound: Change PCMDIR_* numbering christos on Oct 19 2024, 5:06 PM. Authored by Tags None Referenced Files
Subscribers
Details Needed by a follow-up patch, so that channels can be sorted properly. Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions Could this be turned into an enum, to facilitate compiler checks in switch() statements? Or is there a policy on using enums in src? I see them far less often than I would expect. Comment Actions My plan was to convert more examples like this to enums in a follow up patch, but I've got no objection at all to making it an enum here.
Comment Actions Seems ok to me. An anonymous enum type isn't terribly useful, you'd need to start defining variables using the new enum type in order to get checking in switch statements and so on. But, it doesn't hurt either. |