headers: make more headers self-contained

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
This commit is contained in:
Tim Blechmann 2025-01-06 22:49:43 +08:00
parent 352cbc5eb9
commit 139f030622
14 changed files with 49 additions and 0 deletions

View file

@ -28,6 +28,11 @@
#ifndef __ALSA_CONF_H
#define __ALSA_CONF_H
#include <stddef.h>
#include <alsa/input.h>
#include <alsa/output.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -28,6 +28,10 @@
#ifndef __ALSA_CONTROL_H
#define __ALSA_CONTROL_H
#include <stddef.h>
#include <alsa/conf.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -28,6 +28,8 @@
#ifndef __ALSA_ERROR_H
#define __ALSA_ERROR_H
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -28,6 +28,9 @@
#ifndef __ALSA_HWDEP_H
#define __ALSA_HWDEP_H
#include <string.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -29,6 +29,7 @@
#define __ALSA_INPUT_H
#include <stdarg.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {

View file

@ -28,6 +28,11 @@
#ifndef __ALSA_MIXER_H
#define __ALSA_MIXER_H
#include <alsa/control.h>
#include <alsa/pcm.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -29,6 +29,8 @@
#define __ALSA_OUTPUT_H
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {

View file

@ -34,6 +34,10 @@ extern "C" {
#endif
#include <stdint.h>
#include <string.h>
#include <alsa/global.h>
#include <alsa/output.h>
/**
* \defgroup PCM PCM Interface

View file

@ -31,6 +31,10 @@
#ifndef __ALSA_PCM_RATE_H
#define __ALSA_PCM_RATE_H
#include <alsa/conf.h>
#include <alsa/output.h>
#include <alsa/pcm.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -28,6 +28,13 @@
#ifndef __ALSA_RAWMIDI_H
#define __ALSA_RAWMIDI_H
#include <string.h>
#include <sys/types.h>
#include <alsa/conf.h>
#include <alsa/global.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -31,6 +31,9 @@
#include "ump.h"
#include <alsa/seq_event.h>
#include <alsa/timer.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -28,6 +28,13 @@
#ifndef __ALSA_TIMER_H
#define __ALSA_TIMER_H
#include <string.h>
#include <sys/types.h>
#include <alsa/conf.h>
#include <alsa/global.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -22,6 +22,7 @@
#define __ALSA_TOPOLOGY_H
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {

View file

@ -10,6 +10,7 @@
#define __ALSA_UMP_MSG_H
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {