mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-23 01:40:24 -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
|
|
@ -23,7 +23,15 @@ extern "C" {
|
|||
#include <spa/debug/types.h>
|
||||
#include <spa/buffer/type-info.h>
|
||||
|
||||
SPA_API_IMPL int spa_debugc_buffer(struct spa_debug_context *ctx, int indent, const struct spa_buffer *buffer)
|
||||
#ifndef SPA_API_DEBUG_BUFFER
|
||||
#ifdef SPA_API_IMPL
|
||||
#define SPA_API_DEBUG_BUFFER SPA_API_IMPL
|
||||
#else
|
||||
#define SPA_API_DEBUG_BUFFER static inline
|
||||
#endif
|
||||
#endif
|
||||
|
||||
SPA_API_DEBUG_BUFFER int spa_debugc_buffer(struct spa_debug_context *ctx, int indent, const struct spa_buffer *buffer)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
|
|
@ -98,7 +106,7 @@ SPA_API_IMPL int spa_debugc_buffer(struct spa_debug_context *ctx, int indent, co
|
|||
return 0;
|
||||
}
|
||||
|
||||
SPA_API_IMPL int spa_debug_buffer(int indent, const struct spa_buffer *buffer)
|
||||
SPA_API_DEBUG_BUFFER int spa_debug_buffer(int indent, const struct spa_buffer *buffer)
|
||||
{
|
||||
return spa_debugc_buffer(NULL, indent, buffer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue