Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headers: make more headers self-contained #435

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timblechmann
Copy link
Contributor

Some IDEs parse headers in isolation to populate their code model. This exposes some missing headers, mainly for alsa internal struct definitions, ssize_t (requiring sys/types.h), size_t (requiring string.h), va_args (requiring stdargs.h) or FILE (requiring stdio.h)

This patch makes the main headers parsable by qtcreator

Some IDEs parse headers in isolation to populate their code model. This
exposes some missing headers, mainly for alsa internal struct
definitions, ssize_t (requiring sys/types.h), size_t (requiring
string.h), va_args (requiring stdargs.h) or FILE (requiring stdio.h)

This patch makes the main headers parsable by qtcreator
perexg added a commit that referenced this pull request Feb 2, 2025
Fixes several issues with header files:

- prefer alsa/asoundlib.h file for the alsa-lib core functionalities
  (use #warning to inform current and future developers, do the job)
- include alsa/asoundlib.h in headers for external plugins by default
- pcm_external.h: dependencies cleanup
- as benefit, the parsers in IDEs should get all information for individial
  header files (see PR#435)

This change was mainly tergetted to fix errors caused by wrong include order
(like for endianness detection, missing typedefs etc.).

Closes: #431
Link: #435
Signed-off-by: Jaroslav Kysela <[email protected]>
@perexg
Copy link
Member

perexg commented Feb 2, 2025

Thanks for your PR. I did that a bit differently in ea8972c. Could you test with latest alsa-lib sources?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants