*: don't include standard C headers inside of extern "C"

Including C headers inside of `extern "C"` breaks use from C++. Hoist
the includes of standard C headers above the block so we don't try
to mangle the stdlib.

I initially tried to scope this with a targeted change but it's too
hard to do correctly that way. This way, we avoid whack-a-mole.

Firefox is working around this in their e21461b7b8b39cc31ba53c47d4f6f310c673ff2f
commit.

Bug: https://bugzilla.mozilla.org/1953080
This commit is contained in:
Sam James 2025-05-27 09:06:08 +01:00
parent e2731914ad
commit b943c31fd8
No known key found for this signature in database
GPG key ID: 738409F520DF9190
207 changed files with 753 additions and 752 deletions

View file

@ -5,13 +5,13 @@
#ifndef SPA_AUDIO_AAC_TYPES_H
#define SPA_AUDIO_AAC_TYPES_H
#include <spa/utils/type.h>
#include <spa/param/audio/aac.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/utils/type.h>
#include <spa/param/audio/aac.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_AAC_UTILS_H
#define SPA_AUDIO_AAC_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_AAC_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_AAC_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_AAC_H
#define SPA_AUDIO_AAC_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_AC3_UTILS_H
#define SPA_AUDIO_AC3_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_AC3_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_AC3_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_AC3_H
#define SPA_AUDIO_AC3_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_ALAC_UTILS_H
#define SPA_AUDIO_ALAC_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_ALAC_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_ALAC_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_ALAC_H
#define SPA_AUDIO_ALAC_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,13 +5,13 @@
#ifndef SPA_AUDIO_AMR_TYPES_H
#define SPA_AUDIO_AMR_TYPES_H
#include <spa/utils/type.h>
#include <spa/param/audio/amr.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/utils/type.h>
#include <spa/param/audio/amr.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_AMR_UTILS_H
#define SPA_AUDIO_AMR_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_AMR_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_AMR_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_AMR_H
#define SPA_AUDIO_AMR_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_APE_UTILS_H
#define SPA_AUDIO_APE_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_APE_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_APE_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_APE_H
#define SPA_AUDIO_APE_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_DSD_UTILS_H
#define SPA_AUDIO_DSD_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/format-utils.h>
#include <spa/param/audio/format.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/format-utils.h>
#include <spa/param/audio/format.h>
#ifndef SPA_API_AUDIO_DSD_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_DSD_UTILS SPA_API_IMPL

View file

@ -7,13 +7,13 @@
#include <stdint.h>
#include <spa/param/param.h>
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/param.h>
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_DSP_UTILS_H
#define SPA_AUDIO_DSP_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_DSP_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_DSP_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_DSP_H
#define SPA_AUDIO_DSP_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,13 +5,13 @@
#ifndef SPA_AUDIO_DTS_TYPES_H
#define SPA_AUDIO_DTS_TYPES_H
#include <spa/utils/type.h>
#include <spa/param/audio/dts.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/utils/type.h>
#include <spa/param/audio/dts.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_DTS_UTILS_H
#define SPA_AUDIO_DTS_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_DTS_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_DTS_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_DTS_H
#define SPA_AUDIO_DTS_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_EAC3_UTILS_H
#define SPA_AUDIO_EAC3_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_EAC3_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_EAC3_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_EAC3_H
#define SPA_AUDIO_EAC3_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_FLAC_UTILS_H
#define SPA_AUDIO_FLAC_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_FLAC_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_FLAC_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_FLAC_H
#define SPA_AUDIO_FLAC_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,10 +5,6 @@
#ifndef SPA_PARAM_AUDIO_FORMAT_UTILS_H
#define SPA_PARAM_AUDIO_FORMAT_UTILS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
@ -33,6 +29,9 @@ extern "C" {
#include <spa/param/audio/dts-utils.h>
#include <spa/param/audio/mpegh-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* \addtogroup spa_param

View file

@ -5,15 +5,6 @@
#ifndef SPA_PARAM_AUDIO_FORMAT_H
#define SPA_PARAM_AUDIO_FORMAT_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* \addtogroup spa_param
* \{
*/
#include <spa/param/format.h>
#include <spa/param/audio/raw.h>
#include <spa/param/audio/dsp.h>
@ -35,6 +26,15 @@ extern "C" {
#include <spa/param/audio/dts.h>
#include <spa/param/audio/mpegh.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* \addtogroup spa_param
* \{
*/
struct spa_audio_info {
uint32_t media_type;
uint32_t media_subtype;

View file

@ -5,13 +5,13 @@
#ifndef SPA_AUDIO_IEC958_TYPES_H
#define SPA_AUDIO_IEC958_TYPES_H
#include <spa/utils/type.h>
#include <spa/param/audio/iec958.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/utils/type.h>
#include <spa/param/audio/iec958.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_IEC958_UTILS_H
#define SPA_AUDIO_IEC958_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_IEC958_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_IEC958_UTILS SPA_API_IMPL

View file

@ -5,17 +5,18 @@
#ifndef SPA_AUDIO_LAYOUT_H
#define SPA_AUDIO_LAYOUT_H
#include <spa/utils/endian.h>
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/utils/endian.h>
/**
* \addtogroup spa_param
* \{
*/
#include <spa/param/audio/raw.h>
struct spa_audio_layout_info {
uint32_t n_channels;

View file

@ -5,13 +5,13 @@
#ifndef SPA_AUDIO_MP3_TYPES_H
#define SPA_AUDIO_MP3_TYPES_H
#include <spa/utils/type.h>
#include <spa/param/audio/mp3.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/utils/type.h>
#include <spa/param/audio/mp3.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_MP3_UTILS_H
#define SPA_AUDIO_MP3_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_MP3_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_MP3_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_MP3_H
#define SPA_AUDIO_MP3_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_MPEGH_UTILS_H
#define SPA_AUDIO_MPEGH_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_MPEGH_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_MPEGH_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_MPEGH_H
#define SPA_AUDIO_MPEGH_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_OPUS_H
#define SPA_AUDIO_OPUS_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_RA_UTILS_H
#define SPA_AUDIO_RA_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_RA_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_RA_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_RA_H
#define SPA_AUDIO_RA_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_RAW_JSON_H
#define SPA_AUDIO_RAW_JSON_H
#include <spa/utils/dict.h>
#include <spa/utils/json.h>
#include <spa/param/audio/raw.h>
#include <spa/param/audio/raw-types.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/utils/dict.h>
#include <spa/utils/json.h>
#include <spa/param/audio/raw.h>
#include <spa/param/audio/raw-types.h>
#ifndef SPA_API_AUDIO_RAW_JSON
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_RAW_JSON SPA_API_IMPL

View file

@ -5,6 +5,10 @@
#ifndef SPA_AUDIO_RAW_TYPES_H
#define SPA_AUDIO_RAW_TYPES_H
#include <spa/utils/type.h>
#include <spa/utils/string.h>
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/utils/type.h>
#include <spa/utils/string.h>
#include <spa/param/audio/raw.h>
#ifndef SPA_API_AUDIO_RAW_TYPES
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_RAW_TYPES SPA_API_IMPL

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_RAW_UTILS_H
#define SPA_AUDIO_RAW_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_RAW_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_RAW_UTILS SPA_API_IMPL

View file

@ -5,14 +5,14 @@
#ifndef SPA_AUDIO_RAW_H
#define SPA_AUDIO_RAW_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <spa/utils/endian.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_TRUEHD_UTILS_H
#define SPA_AUDIO_TRUEHD_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_TRUEHD_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_TRUEHD_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_TRUEHD_H
#define SPA_AUDIO_TRUEHD_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_VORBIS_UTILS_H
#define SPA_AUDIO_VORBIS_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_VORBIS_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_VORBIS_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_VORBIS_H
#define SPA_AUDIO_VORBIS_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,13 +5,13 @@
#ifndef SPA_AUDIO_WMA_TYPES_H
#define SPA_AUDIO_WMA_TYPES_H
#include <spa/utils/type.h>
#include <spa/param/audio/wma.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/utils/type.h>
#include <spa/param/audio/wma.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,11 @@
#ifndef SPA_AUDIO_WMA_UTILS_H
#define SPA_AUDIO_WMA_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/audio/format.h>
#include <spa/param/format-utils.h>
#ifndef SPA_API_AUDIO_WMA_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_AUDIO_WMA_UTILS SPA_API_IMPL

View file

@ -5,12 +5,12 @@
#ifndef SPA_AUDIO_WMA_H
#define SPA_AUDIO_WMA_H
#include <spa/param/audio/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/audio/raw.h>
/**
* \addtogroup spa_param
* \{

View file

@ -5,6 +5,8 @@
#ifndef SPA_BLUETOOTH_TYPES_H
#define SPA_BLUETOOTH_TYPES_H
#include <spa/param/bluetooth/audio.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/bluetooth/audio.h>
#define SPA_TYPE_INFO_BluetoothAudioCodec SPA_TYPE_INFO_ENUM_BASE "BluetoothAudioCodec"
#define SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE SPA_TYPE_INFO_BluetoothAudioCodec ":"

View file

@ -5,6 +5,11 @@
#ifndef SPA_PARAM_BUFFERS_TYPES_H
#define SPA_PARAM_BUFFERS_TYPES_H
#include <spa/param/param-types.h>
#include <spa/node/type-info.h>
#include <spa/param/buffers.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/param/param-types.h>
#include <spa/node/type-info.h>
#include <spa/param/buffers.h>
#define SPA_TYPE_INFO_PARAM_Meta SPA_TYPE_INFO_PARAM_BASE "Meta"
#define SPA_TYPE_INFO_PARAM_META_BASE SPA_TYPE_INFO_PARAM_Meta ":"

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_BUFFERS_H
#define SPA_PARAM_BUFFERS_H
#include <spa/param/param.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/param.h>
/** properties for SPA_TYPE_OBJECT_ParamBuffers */
enum spa_param_buffers {
SPA_PARAM_BUFFERS_START,

View file

@ -5,6 +5,13 @@
#ifndef SPA_PARAM_FORMAT_TYPES_H
#define SPA_PARAM_FORMAT_TYPES_H
#include <spa/param/format.h>
#include <spa/param/param-types.h>
#include <spa/param/audio/type-info.h>
#include <spa/param/video/type-info.h>
#include <spa/control/type-info.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,13 +21,6 @@ extern "C" {
* \{
*/
#include <spa/param/format.h>
#include <spa/param/param-types.h>
#include <spa/param/audio/type-info.h>
#include <spa/param/video/type-info.h>
#include <spa/control/type-info.h>
#define SPA_TYPE_INFO_Format SPA_TYPE_INFO_PARAM_BASE "Format"
#define SPA_TYPE_INFO_FORMAT_BASE SPA_TYPE_INFO_Format ":"

View file

@ -5,6 +5,9 @@
#ifndef SPA_PARAM_FORMAT_UTILS_H
#define SPA_PARAM_FORMAT_UTILS_H
#include <spa/pod/parser.h>
#include <spa/param/format.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -15,9 +18,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/param/format.h>
#ifndef SPA_API_FORMAT_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_FORMAT_UTILS SPA_API_IMPL

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_FORMAT_H
#define SPA_PARAM_FORMAT_H
#include <spa/param/param.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/param.h>
/** media type for SPA_TYPE_OBJECT_Format */
enum spa_media_type {
SPA_MEDIA_TYPE_unknown,

View file

@ -5,6 +5,10 @@
#ifndef SPA_PARAM_LATENCY_TYPES_H
#define SPA_PARAM_LATENCY_TYPES_H
#include <spa/utils/enum-types.h>
#include <spa/param/param-types.h>
#include <spa/param/latency.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/utils/enum-types.h>
#include <spa/param/param-types.h>
#include <spa/param/latency.h>
#define SPA_TYPE_INFO_PARAM_Latency SPA_TYPE_INFO_PARAM_BASE "Latency"
#define SPA_TYPE_INFO_PARAM_LATENCY_BASE SPA_TYPE_INFO_PARAM_Latency ":"

View file

@ -5,6 +5,12 @@
#ifndef SPA_PARAM_LATENCY_UTILS_H
#define SPA_PARAM_LATENCY_UTILS_H
#include <float.h>
#include <spa/pod/builder.h>
#include <spa/pod/parser.h>
#include <spa/param/latency.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,12 +20,6 @@ extern "C" {
* \{
*/
#include <float.h>
#include <spa/pod/builder.h>
#include <spa/pod/parser.h>
#include <spa/param/latency.h>
#ifndef SPA_API_LATENCY_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_LATENCY_UTILS SPA_API_IMPL

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_LATENY_H
#define SPA_PARAM_LATENY_H
#include <spa/param/param.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/param.h>
/**
* Properties for SPA_TYPE_OBJECT_ParamLatency
*

View file

@ -5,6 +5,10 @@
#ifndef SPA_PARAM_TYPES_H
#define SPA_PARAM_TYPES_H
#include <spa/param/props.h>
#include <spa/param/format.h>
#include <spa/buffer/type-info.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/param/props.h>
#include <spa/param/format.h>
#include <spa/buffer/type-info.h>
/* base for parameter object enumerations */
#define SPA_TYPE_INFO_ParamId SPA_TYPE_INFO_ENUM_BASE "ParamId"
#define SPA_TYPE_INFO_PARAM_ID_BASE SPA_TYPE_INFO_ParamId ":"

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_H
#define SPA_PARAM_H
#include <spa/utils/defs.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -18,8 +20,6 @@ extern "C" {
* \{
*/
#include <spa/utils/defs.h>
/** different parameter types that can be queried */
enum spa_param_type {
SPA_PARAM_Invalid, /**< invalid */

View file

@ -5,6 +5,10 @@
#ifndef SPA_PARAM_PORT_CONFIG_TYPES_H
#define SPA_PARAM_PORT_CONFIG_TYPES_H
#include <spa/utils/enum-types.h>
#include <spa/param/param-types.h>
#include <spa/param/port-config.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/utils/enum-types.h>
#include <spa/param/param-types.h>
#include <spa/param/port-config.h>
#define SPA_TYPE_INFO_ParamPortConfigMode SPA_TYPE_INFO_ENUM_BASE "ParamPortConfigMode"
#define SPA_TYPE_INFO_PARAM_PORT_CONFIG_MODE_BASE SPA_TYPE_INFO_ParamPortConfigMode ":"

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_PORT_CONFIG_H
#define SPA_PARAM_PORT_CONFIG_H
#include <spa/param/param.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/param.h>
enum spa_param_port_config_mode {
SPA_PARAM_PORT_CONFIG_MODE_none, /**< no configuration */
SPA_PARAM_PORT_CONFIG_MODE_passthrough, /**< passthrough configuration */

View file

@ -5,6 +5,10 @@
#ifndef SPA_PARAM_PROFILE_TYPES_H
#define SPA_PARAM_PROFILE_TYPES_H
#include <spa/param/param-types.h>
#include <spa/param/profile.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/param/param-types.h>
#include <spa/param/profile.h>
#define SPA_TYPE_INFO_PARAM_Profile SPA_TYPE_INFO_PARAM_BASE "Profile"
#define SPA_TYPE_INFO_PARAM_PROFILE_BASE SPA_TYPE_INFO_PARAM_Profile ":"

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_PROFILE_H
#define SPA_PARAM_PROFILE_H
#include <spa/param/param.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/param.h>
/** properties for SPA_TYPE_OBJECT_ParamProfile */
enum spa_param_profile {
SPA_PARAM_PROFILE_START,

View file

@ -5,6 +5,9 @@
#ifndef SPA_PARAM_PROFILER_TYPES_H
#define SPA_PARAM_PROFILER_TYPES_H
#include <spa/param/param-types.h>
#include <spa/param/profiler.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,9 +17,6 @@ extern "C" {
* \{
*/
#include <spa/param/param-types.h>
#include <spa/param/profiler.h>
#define SPA_TYPE_INFO_Profiler SPA_TYPE_INFO_OBJECT_BASE "Profiler"
#define SPA_TYPE_INFO_PROFILER_BASE SPA_TYPE_INFO_Profiler ":"

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_PROFILER_H
#define SPA_PARAM_PROFILER_H
#include <spa/param/param.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/param.h>
/** properties for SPA_TYPE_OBJECT_Profiler */
enum spa_profiler {
SPA_PROFILER_START,

View file

@ -5,6 +5,10 @@
#ifndef SPA_PARAM_PROPS_TYPES_H
#define SPA_PARAM_PROPS_TYPES_H
#include <spa/param/param-types.h>
#include <spa/param/bluetooth/type-info.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/param/param-types.h>
#include <spa/param/bluetooth/type-info.h>
/** Props Param */
#define SPA_TYPE_INFO_Props SPA_TYPE_INFO_PARAM_BASE "Props"
#define SPA_TYPE_INFO_PROPS_BASE SPA_TYPE_INFO_Props ":"

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_PROPS_H
#define SPA_PARAM_PROPS_H
#include <spa/param/param.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/param.h>
/** properties of SPA_TYPE_OBJECT_PropInfo */
enum spa_prop_info {
SPA_PROP_INFO_START,

View file

@ -5,6 +5,11 @@
#ifndef SPA_PARAM_ROUTE_TYPES_H
#define SPA_PARAM_ROUTE_TYPES_H
#include <spa/utils/enum-types.h>
#include <spa/param/param-types.h>
#include <spa/param/route.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/utils/enum-types.h>
#include <spa/param/param-types.h>
#include <spa/param/route.h>
#define SPA_TYPE_INFO_PARAM_Route SPA_TYPE_INFO_PARAM_BASE "Route"
#define SPA_TYPE_INFO_PARAM_ROUTE_BASE SPA_TYPE_INFO_PARAM_Route ":"

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_ROUTE_H
#define SPA_PARAM_ROUTE_H
#include <spa/param/param.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/param.h>
/** properties for SPA_TYPE_OBJECT_ParamRoute */
enum spa_param_route {
SPA_PARAM_ROUTE_START,

View file

@ -5,6 +5,10 @@
#ifndef SPA_PARAM_TAG_TYPES_H
#define SPA_PARAM_TAG_TYPES_H
#include <spa/utils/enum-types.h>
#include <spa/param/param-types.h>
#include <spa/param/tag.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/utils/enum-types.h>
#include <spa/param/param-types.h>
#include <spa/param/tag.h>
#define SPA_TYPE_INFO_PARAM_Tag SPA_TYPE_INFO_PARAM_BASE "Tag"
#define SPA_TYPE_INFO_PARAM_TAG_BASE SPA_TYPE_INFO_PARAM_Tag ":"

View file

@ -5,6 +5,13 @@
#ifndef SPA_PARAM_TAG_UTILS_H
#define SPA_PARAM_TAG_UTILS_H
#include <float.h>
#include <spa/utils/dict.h>
#include <spa/pod/builder.h>
#include <spa/pod/parser.h>
#include <spa/param/tag.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,13 +21,6 @@ extern "C" {
* \{
*/
#include <float.h>
#include <spa/utils/dict.h>
#include <spa/pod/builder.h>
#include <spa/pod/parser.h>
#include <spa/param/tag.h>
#ifndef SPA_API_TAG_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_TAG_UTILS SPA_API_IMPL

View file

@ -5,6 +5,8 @@
#ifndef SPA_PARAM_TAG_H
#define SPA_PARAM_TAG_H
#include <spa/param/param.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/param.h>
/** properties for SPA_TYPE_OBJECT_ParamTag */
enum spa_param_tag {
SPA_PARAM_TAG_START,

View file

@ -5,6 +5,10 @@
#ifndef SPA_VIDEO_DSP_UTILS_H
#define SPA_VIDEO_DSP_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/video/dsp.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/video/dsp.h>
#ifndef SPA_API_VIDEO_DSP_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_VIDEO_DSP_UTILS SPA_API_IMPL

View file

@ -5,10 +5,6 @@
#ifndef SPA_PARAM_VIDEO_FORMAT_UTILS_H
#define SPA_PARAM_VIDEO_FORMAT_UTILS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/format-utils.h>
#include <spa/param/video/format.h>
#include <spa/param/video/raw-utils.h>
@ -17,6 +13,10 @@ extern "C" {
#include <spa/param/video/h265-utils.h>
#include <spa/param/video/mjpg-utils.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef SPA_API_VIDEO_FORMAT_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_VIDEO_FORMAT_UTILS SPA_API_IMPL

View file

@ -5,6 +5,11 @@
#ifndef SPA_PARAM_VIDEO_FORMAT_H
#define SPA_PARAM_VIDEO_FORMAT_H
#include <spa/param/format.h>
#include <spa/param/video/raw.h>
#include <spa/param/video/dsp.h>
#include <spa/param/video/encoded.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/param/format.h>
#include <spa/param/video/raw.h>
#include <spa/param/video/dsp.h>
#include <spa/param/video/encoded.h>
struct spa_video_info {
uint32_t media_type;
uint32_t media_subtype;

View file

@ -5,6 +5,10 @@
#ifndef SPA_VIDEO_H264_UTILS_H
#define SPA_VIDEO_H264_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/video/h264.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/video/h264.h>
#ifndef SPA_API_VIDEO_H264_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_VIDEO_H264_UTILS SPA_API_IMPL

View file

@ -5,6 +5,8 @@
#ifndef SPA_VIDEO_H264_H
#define SPA_VIDEO_H264_H
#include <spa/param/format.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/format.h>
enum spa_h264_stream_format {
SPA_H264_STREAM_FORMAT_UNKNOWN = 0,
SPA_H264_STREAM_FORMAT_AVC,

View file

@ -5,6 +5,10 @@
#ifndef SPA_VIDEO_MJPG_UTILS_H
#define SPA_VIDEO_MJPG_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/video/mjpg.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/video/mjpg.h>
#ifndef SPA_API_VIDEO_MJPG_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_VIDEO_MJPG_UTILS SPA_API_IMPL

View file

@ -5,6 +5,8 @@
#ifndef SPA_VIDEO_MJPG_H
#define SPA_VIDEO_MJPG_H
#include <spa/param/format.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,8 +16,6 @@ extern "C" {
* \{
*/
#include <spa/param/format.h>
struct spa_video_info_mjpg {
struct spa_rectangle size;
struct spa_fraction framerate;

View file

@ -5,6 +5,9 @@
#ifndef SPA_VIDEO_RAW_TYPES_H
#define SPA_VIDEO_RAW_TYPES_H
#include <spa/utils/type.h>
#include <spa/param/video/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -13,8 +16,6 @@ extern "C" {
* \addtogroup spa_param
* \{
*/
#include <spa/utils/type.h>
#include <spa/param/video/raw.h>
#ifndef SPA_API_VIDEO_RAW_TYPES
#ifdef SPA_API_IMPL

View file

@ -5,6 +5,10 @@
#ifndef SPA_VIDEO_RAW_UTILS_H
#define SPA_VIDEO_RAW_UTILS_H
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/video/raw.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,10 +18,6 @@ extern "C" {
* \{
*/
#include <spa/pod/parser.h>
#include <spa/pod/builder.h>
#include <spa/param/video/raw.h>
#ifndef SPA_API_VIDEO_RAW_UTILS
#ifdef SPA_API_IMPL
#define SPA_API_VIDEO_RAW_UTILS SPA_API_IMPL

View file

@ -5,6 +5,11 @@
#ifndef SPA_VIDEO_RAW_H
#define SPA_VIDEO_RAW_H
#include <spa/param/format.h>
#include <spa/param/video/chroma.h>
#include <spa/param/video/color.h>
#include <spa/param/video/multiview.h>
#ifdef __cplusplus
extern "C" {
#endif
@ -14,11 +19,6 @@ extern "C" {
* \{
*/
#include <spa/param/format.h>
#include <spa/param/video/chroma.h>
#include <spa/param/video/color.h>
#include <spa/param/video/multiview.h>
#define SPA_VIDEO_MAX_PLANES 4
#define SPA_VIDEO_MAX_COMPONENTS 4