mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-01 21:37:46 -04:00
make static inline -> SPA_API_IMPL
So that we can export the symbols as well.
This commit is contained in:
parent
84bd4b7ea9
commit
90b0e45037
91 changed files with 563 additions and 552 deletions
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_aac_parse(const struct spa_pod *format, struct spa_audio_info_aac *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -33,7 +33,7 @@ spa_format_audio_aac_parse(const struct spa_pod *format, struct spa_audio_info_a
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_aac_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_aac *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_alac_parse(const struct spa_pod *format, struct spa_audio_info_alac *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -30,7 +30,7 @@ spa_format_audio_alac_parse(const struct spa_pod *format, struct spa_audio_info_
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_alac_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_alac *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_amr_parse(const struct spa_pod *format, struct spa_audio_info_amr *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -31,7 +31,7 @@ spa_format_audio_amr_parse(const struct spa_pod *format, struct spa_audio_info_a
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_amr_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_amr *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_ape_parse(const struct spa_pod *format, struct spa_audio_info_ape *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -30,7 +30,7 @@ spa_format_audio_ape_parse(const struct spa_pod *format, struct spa_audio_info_a
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_ape_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_ape *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/format-utils.h>
|
||||
#include <spa/param/audio/format.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_dsd_parse(const struct spa_pod *format, struct spa_audio_info_dsd *info)
|
||||
{
|
||||
struct spa_pod *position = NULL;
|
||||
|
|
@ -39,7 +39,7 @@ spa_format_audio_dsd_parse(const struct spa_pod *format, struct spa_audio_info_d
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_dsd_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_dsd *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_dsp_parse(const struct spa_pod *format, struct spa_audio_info_dsp *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -29,7 +29,7 @@ spa_format_audio_dsp_parse(const struct spa_pod *format, struct spa_audio_info_d
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_dsp_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_dsp *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_flac_parse(const struct spa_pod *format, struct spa_audio_info_flac *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -30,7 +30,7 @@ spa_format_audio_flac_parse(const struct spa_pod *format, struct spa_audio_info_
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_flac_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_flac *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ extern "C" {
|
|||
* \{
|
||||
*/
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_parse(const struct spa_pod *format, struct spa_audio_info *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -76,7 +76,7 @@ spa_format_audio_parse(const struct spa_pod *format, struct spa_audio_info *info
|
|||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -33,11 +33,11 @@ static const struct spa_type_info spa_type_audio_iec958_codec[] = {
|
|||
{ 0, 0, NULL, NULL },
|
||||
};
|
||||
|
||||
static inline uint32_t spa_type_audio_iec958_codec_from_short_name(const char *name)
|
||||
SPA_API_IMPL uint32_t spa_type_audio_iec958_codec_from_short_name(const char *name)
|
||||
{
|
||||
return spa_type_from_short_name(name, spa_type_audio_iec958_codec, SPA_AUDIO_IEC958_CODEC_UNKNOWN);
|
||||
}
|
||||
static inline const char * spa_type_audio_iec958_codec_to_short_name(uint32_t type)
|
||||
SPA_API_IMPL const char * spa_type_audio_iec958_codec_to_short_name(uint32_t type)
|
||||
{
|
||||
return spa_type_to_short_name(type, spa_type_audio_iec958_codec, "UNKNOWN");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_iec958_parse(const struct spa_pod *format, struct spa_audio_info_iec958 *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -30,7 +30,7 @@ spa_format_audio_iec958_parse(const struct spa_pod *format, struct spa_audio_inf
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_iec958_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_iec958 *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_mp3_parse(const struct spa_pod *format, struct spa_audio_info_mp3 *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -30,7 +30,7 @@ spa_format_audio_mp3_parse(const struct spa_pod *format, struct spa_audio_info_m
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_mp3_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_mp3 *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_ra_parse(const struct spa_pod *format, struct spa_audio_info_ra *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -30,7 +30,7 @@ spa_format_audio_ra_parse(const struct spa_pod *format, struct spa_audio_info_ra
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_ra_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_ra *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/raw.h>
|
||||
#include <spa/param/audio/raw-types.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_audio_parse_position(const char *str, size_t len,
|
||||
uint32_t *position, uint32_t *n_channels)
|
||||
{
|
||||
|
|
@ -38,7 +38,7 @@ spa_audio_parse_position(const char *str, size_t len,
|
|||
return channels;
|
||||
}
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_audio_info_raw_update(struct spa_audio_info_raw *info, const char *key, const char *val, bool force)
|
||||
{
|
||||
uint32_t v;
|
||||
|
|
@ -60,7 +60,7 @@ spa_audio_info_raw_update(struct spa_audio_info_raw *info, const char *key, cons
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline int SPA_SENTINEL
|
||||
SPA_API_IMPL int SPA_SENTINEL
|
||||
spa_audio_info_raw_init_dict_keys(struct spa_audio_info_raw *info,
|
||||
const struct spa_dict *defaults,
|
||||
const struct spa_dict *dict, ...)
|
||||
|
|
|
|||
|
|
@ -129,11 +129,11 @@ static const struct spa_type_info spa_type_audio_format[] = {
|
|||
{ 0, 0, NULL, NULL },
|
||||
};
|
||||
|
||||
static inline uint32_t spa_type_audio_format_from_short_name(const char *name)
|
||||
SPA_API_IMPL uint32_t spa_type_audio_format_from_short_name(const char *name)
|
||||
{
|
||||
return spa_type_from_short_name(name, spa_type_audio_format, SPA_AUDIO_FORMAT_UNKNOWN);
|
||||
}
|
||||
static inline const char * spa_type_audio_format_to_short_name(uint32_t type)
|
||||
SPA_API_IMPL const char * spa_type_audio_format_to_short_name(uint32_t type)
|
||||
{
|
||||
return spa_type_to_short_name(type, spa_type_audio_format, "UNKNOWN");
|
||||
}
|
||||
|
|
@ -257,11 +257,11 @@ static const struct spa_type_info spa_type_audio_channel[] = {
|
|||
{ 0, 0, NULL, NULL },
|
||||
};
|
||||
|
||||
static inline uint32_t spa_type_audio_channel_from_short_name(const char *name)
|
||||
SPA_API_IMPL uint32_t spa_type_audio_channel_from_short_name(const char *name)
|
||||
{
|
||||
return spa_type_from_short_name(name, spa_type_audio_channel, SPA_AUDIO_CHANNEL_UNKNOWN);
|
||||
}
|
||||
static inline const char * spa_type_audio_channel_to_short_name(uint32_t type)
|
||||
SPA_API_IMPL const char * spa_type_audio_channel_to_short_name(uint32_t type)
|
||||
{
|
||||
return spa_type_to_short_name(type, spa_type_audio_channel, "UNK");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_raw_parse(const struct spa_pod *format, struct spa_audio_info_raw *info)
|
||||
{
|
||||
struct spa_pod *position = NULL;
|
||||
|
|
@ -38,7 +38,7 @@ spa_format_audio_raw_parse(const struct spa_pod *format, struct spa_audio_info_r
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_raw_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_raw *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_vorbis_parse(const struct spa_pod *format, struct spa_audio_info_vorbis *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -30,7 +30,7 @@ spa_format_audio_vorbis_parse(const struct spa_pod *format, struct spa_audio_inf
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_vorbis_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_vorbis *info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ extern "C" {
|
|||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_format_audio_wma_parse(const struct spa_pod *format, struct spa_audio_info_wma *info)
|
||||
{
|
||||
int res;
|
||||
|
|
@ -33,7 +33,7 @@ spa_format_audio_wma_parse(const struct spa_pod *format, struct spa_audio_info_w
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
SPA_API_IMPL struct spa_pod *
|
||||
spa_format_audio_wma_build(struct spa_pod_builder *builder, uint32_t id,
|
||||
const struct spa_audio_info_wma *info)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue