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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions include/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
#ifndef __ALSA_CONTROL_H
#define __ALSA_CONTROL_H

#include <stddef.h>

#include <alsa/conf.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
2 changes: 2 additions & 0 deletions include/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#ifndef __ALSA_ERROR_H
#define __ALSA_ERROR_H

#include <stdarg.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
3 changes: 3 additions & 0 deletions include/hwdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#ifndef __ALSA_HWDEP_H
#define __ALSA_HWDEP_H

#include <string.h>
#include <sys/types.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
1 change: 1 addition & 0 deletions include/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#define __ALSA_INPUT_H

#include <stdarg.h>
#include <stdio.h>

#ifdef __cplusplus
extern "C" {
Expand Down
5 changes: 5 additions & 0 deletions include/mixer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions include/output.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#define __ALSA_OUTPUT_H

#include <stdarg.h>
#include <stdio.h>
#include <string.h>

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 4 additions & 0 deletions include/pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions include/pcm_rate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions include/rawmidi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions include/seq.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

#include "ump.h"

#include <alsa/seq_event.h>
#include <alsa/timer.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
7 changes: 7 additions & 0 deletions include/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions include/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define __ALSA_TOPOLOGY_H

#include <stdint.h>
#include <string.h>

#ifdef __cplusplus
extern "C" {
Expand Down
1 change: 1 addition & 0 deletions include/ump_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define __ALSA_UMP_MSG_H

#include <stdint.h>
#include <string.h>

#ifdef __cplusplus
extern "C" {
Expand Down
Loading