headers: make headers self-contained

each header should include the dependency headers in order to make the
headers self-contained.
this is allows clangd based IDEs to parse the headers and populate the
code model correctly
This commit is contained in:
Tim Blechmann 2022-12-05 14:42:20 +08:00
parent d28e8cb294
commit 58d9d991f4
18 changed files with 47 additions and 0 deletions

View file

@ -28,6 +28,9 @@
#ifndef __ALSA_CONF_H
#define __ALSA_CONF_H
#include "input.h"
#include "output.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

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

View file

@ -31,6 +31,8 @@
#ifndef __ALSA_CONTROL_PLUGIN_H
#define __ALSA_CONTROL_PLUGIN_H
#include "control.h"
/**
* \defgroup Control_Plugins Primitive Control Plugins
* \ingroup Control

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 <stddef.h>
#include <unistd.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

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

View file

@ -28,6 +28,9 @@
#ifndef __ALSA_MIXER_H
#define __ALSA_MIXER_H
#include "control.h"
#include "pcm.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -26,6 +26,8 @@
#ifndef __ALSA_MIXER_ABST_H
#define __ALSA_MIXER_ABST_H
#include "mixer.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

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

View file

@ -29,6 +29,9 @@
#ifndef __ALSA_PCM_H
#define __ALSA_PCM_H
#include "conf.h"
#include "global.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -31,6 +31,8 @@
#ifndef __ALSA_PCM_IOPLUG_H
#define __ALSA_PCM_IOPLUG_H
#include "pcm.h"
/**
* \defgroup PCM_IOPlug External I/O plugin SDK
* \ingroup Plugin_SDK

View file

@ -32,6 +32,8 @@
#ifndef __ALSA_PCM_PLUGIN_H
#define __ALSA_PCM_PLUGIN_H
#include "pcm.h"
/**
* \defgroup PCM_Plugins PCM Plugins
* \ingroup PCM

View file

@ -31,6 +31,8 @@
#ifndef __ALSA_PCM_RATE_H
#define __ALSA_PCM_RATE_H
#include "pcm.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -28,6 +28,9 @@
#ifndef __ALSA_RAWMIDI_H
#define __ALSA_RAWMIDI_H
#include "conf.h"
#include "global.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -29,6 +29,12 @@
#ifndef __ALSA_SEQ_H
#define __ALSA_SEQ_H
#include <stddef.h>
#include <unistd.h>
#include "conf.h"
#include "seq_event.h"
#include "timer.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -28,6 +28,9 @@
#ifndef __ALSA_SEQ_MIDI_EVENT_H
#define __ALSA_SEQ_MIDI_EVENT_H
#include <stddef.h>
#include "seq_event.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -28,6 +28,8 @@
#ifndef __ALSA_TIMER_H
#define __ALSA_TIMER_H
#include "conf.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -21,6 +21,7 @@
#ifndef __ALSA_TOPOLOGY_H
#define __ALSA_TOPOLOGY_H
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus