mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-07-07 00:07:11 -04:00
add per type API defines
This commit is contained in:
parent
b03f2f7afa
commit
31802d4994
85 changed files with 1137 additions and 509 deletions
|
|
@ -26,13 +26,21 @@ extern "C" {
|
|||
* \{
|
||||
*/
|
||||
|
||||
#ifndef SPA_API_DEBUG_FILE
|
||||
#ifdef SPA_API_IMPL
|
||||
#define SPA_API_DEBUG_FILE SPA_API_IMPL
|
||||
#else
|
||||
#define SPA_API_DEBUG_FILE static inline
|
||||
#endif
|
||||
#endif
|
||||
|
||||
struct spa_debug_file_ctx {
|
||||
struct spa_debug_context ctx;
|
||||
FILE *f;
|
||||
};
|
||||
|
||||
SPA_PRINTF_FUNC(2,3)
|
||||
SPA_API_IMPL void spa_debug_file_log(struct spa_debug_context *ctx, const char *fmt, ...)
|
||||
SPA_API_DEBUG_FILE void spa_debug_file_log(struct spa_debug_context *ctx, const char *fmt, ...)
|
||||
{
|
||||
struct spa_debug_file_ctx *c = SPA_CONTAINER_OF(ctx, struct spa_debug_file_ctx, ctx);
|
||||
va_list args;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue