Skip to content

Implement mutually exclusive header support in bindgen invocations (constants, types, API-subsets) #516

@wmmc88

Description

@wmmc88

Update all bindgen invocations for constants, types, and API-subset-specific modules to leverage the mutually exclusive header grouping mechanism. Specifically:

  • Bindgen runs should first process base types, then run separately on each mutually exclusive header, always including the base headers but only one mutually exclusive header per run.
  • Use bindgen's allowlist_file and set allowlist_recursively to false to prevent duplicate definitions and allow correct parsing.
  • Ensure this logic is reusable for all relevant code paths and easily maintainable as WDK header compatibility changes over time.
  • Implementation should minimize changes outside of grouping logic and maximize reusability across the codebase.

Reference: See parent issue for detailed background and rationale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions