mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-12 04:28:02 -05: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
|
|
@ -58,7 +58,7 @@ struct spa_buffer_alloc_info {
|
|||
* \param data_aligns \a n_datas alignments
|
||||
* \return 0 on success.
|
||||
* */
|
||||
static inline int spa_buffer_alloc_fill_info(struct spa_buffer_alloc_info *info,
|
||||
SPA_API_IMPL int spa_buffer_alloc_fill_info(struct spa_buffer_alloc_info *info,
|
||||
uint32_t n_metas, struct spa_meta metas[],
|
||||
uint32_t n_datas, struct spa_data datas[],
|
||||
uint32_t data_aligns[])
|
||||
|
|
@ -179,7 +179,7 @@ static inline int spa_buffer_alloc_fill_info(struct spa_buffer_alloc_info *info,
|
|||
* \param data_mem memory to hold the meta, chunk and memory
|
||||
* \return a struct \ref spa_buffer in \a skel_mem
|
||||
*/
|
||||
static inline struct spa_buffer *
|
||||
SPA_API_IMPL struct spa_buffer *
|
||||
spa_buffer_alloc_layout(struct spa_buffer_alloc_info *info,
|
||||
void *skel_mem, void *data_mem)
|
||||
{
|
||||
|
|
@ -257,7 +257,7 @@ spa_buffer_alloc_layout(struct spa_buffer_alloc_info *info,
|
|||
* \return 0 on success.
|
||||
*
|
||||
*/
|
||||
static inline int
|
||||
SPA_API_IMPL int
|
||||
spa_buffer_alloc_layout_array(struct spa_buffer_alloc_info *info,
|
||||
uint32_t n_buffers, struct spa_buffer *buffers[],
|
||||
void *skel_mem, void *data_mem)
|
||||
|
|
@ -292,7 +292,7 @@ spa_buffer_alloc_layout_array(struct spa_buffer_alloc_info *info,
|
|||
* allocation failed.
|
||||
*
|
||||
*/
|
||||
static inline struct spa_buffer **
|
||||
SPA_API_IMPL struct spa_buffer **
|
||||
spa_buffer_alloc_array(uint32_t n_buffers, uint32_t flags,
|
||||
uint32_t n_metas, struct spa_meta metas[],
|
||||
uint32_t n_datas, struct spa_data datas[],
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ struct spa_buffer {
|
|||
};
|
||||
|
||||
/** Find metadata in a buffer */
|
||||
static inline struct spa_meta *spa_buffer_find_meta(const struct spa_buffer *b, uint32_t type)
|
||||
SPA_API_IMPL struct spa_meta *spa_buffer_find_meta(const struct spa_buffer *b, uint32_t type)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ static inline struct spa_meta *spa_buffer_find_meta(const struct spa_buffer *b,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static inline void *spa_buffer_find_meta_data(const struct spa_buffer *b, uint32_t type, size_t size)
|
||||
SPA_API_IMPL void *spa_buffer_find_meta_data(const struct spa_buffer *b, uint32_t type, size_t size)
|
||||
{
|
||||
struct spa_meta *m;
|
||||
if ((m = spa_buffer_find_meta(b, type)) && m->size >= size)
|
||||
|
|
|
|||
|
|
@ -46,11 +46,11 @@ struct spa_meta {
|
|||
void *data; /**< pointer to metadata */
|
||||
};
|
||||
|
||||
static inline void *spa_meta_first(const struct spa_meta *m) {
|
||||
SPA_API_IMPL void *spa_meta_first(const struct spa_meta *m) {
|
||||
return m->data;
|
||||
}
|
||||
#define spa_meta_first spa_meta_first
|
||||
static inline void *spa_meta_end(const struct spa_meta *m) {
|
||||
SPA_API_IMPL void *spa_meta_end(const struct spa_meta *m) {
|
||||
return SPA_PTROFF(m->data,m->size,void);
|
||||
}
|
||||
#define spa_meta_end spa_meta_end
|
||||
|
|
@ -80,7 +80,7 @@ struct spa_meta_region {
|
|||
struct spa_region region;
|
||||
};
|
||||
|
||||
static inline bool spa_meta_region_is_valid(const struct spa_meta_region *m) {
|
||||
SPA_API_IMPL bool spa_meta_region_is_valid(const struct spa_meta_region *m) {
|
||||
return m->region.size.width != 0 && m->region.size.height != 0;
|
||||
}
|
||||
#define spa_meta_region_is_valid spa_meta_region_is_valid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue