mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
add per type API defines
This commit is contained in:
parent
b03f2f7afa
commit
31802d4994
85 changed files with 1137 additions and 509 deletions
|
|
@ -20,12 +20,20 @@ extern "C" {
|
|||
#include <spa/pod/iter.h>
|
||||
#include <spa/pod/builder.h>
|
||||
|
||||
#ifndef SPA_API_POD_COMPARE
|
||||
#ifdef SPA_API_IMPL
|
||||
#define SPA_API_POD_COMPARE SPA_API_IMPL
|
||||
#else
|
||||
#define SPA_API_POD_COMPARE static inline
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \addtogroup spa_pod
|
||||
* \{
|
||||
*/
|
||||
|
||||
SPA_API_IMPL int spa_pod_compare_value(uint32_t type, const void *r1, const void *r2, uint32_t size)
|
||||
SPA_API_POD_COMPARE int spa_pod_compare_value(uint32_t type, const void *r1, const void *r2, uint32_t size)
|
||||
{
|
||||
switch (type) {
|
||||
case SPA_TYPE_None:
|
||||
|
|
@ -72,7 +80,7 @@ SPA_API_IMPL int spa_pod_compare_value(uint32_t type, const void *r1, const void
|
|||
return 0;
|
||||
}
|
||||
|
||||
SPA_API_IMPL int spa_pod_compare(const struct spa_pod *pod1,
|
||||
SPA_API_POD_COMPARE int spa_pod_compare(const struct spa_pod *pod1,
|
||||
const struct spa_pod *pod2)
|
||||
{
|
||||
int res = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue