PipeWire
1.2.5
node.h
Go to the documentation of this file.
1
/* Simple Plugin API */
2
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
3
/* SPDX-License-Identifier: MIT */
4
5
#ifndef SPA_DEBUG_NODE_H
6
#define SPA_DEBUG_NODE_H
7
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
17
#include <
spa/node/node.h
>
18
#include <
spa/debug/context.h
>
19
#include <
spa/debug/dict.h
>
20
21
static
inline
int
spa_debugc_port_info
(
struct
spa_debug_context
*ctx,
int
indent,
const
struct
spa_port_info
*info)
22
{
23
spa_debugc
(ctx,
"%*s"
"struct spa_port_info %p:"
, indent,
""
, info);
24
spa_debugc
(ctx,
"%*s"
" flags: \t%08"
PRIx64, indent,
""
, info->
flags
);
25
spa_debugc
(ctx,
"%*s"
" rate: \t%d/%d"
, indent,
""
, info->
rate
.
num
, info->
rate
.
denom
);
26
spa_debugc
(ctx,
"%*s"
" props:"
, indent,
""
);
27
if
(info->props)
28
spa_debugc_dict
(ctx, indent + 2, info->props);
29
else
30
spa_debugc
(ctx,
"%*s"
" none"
, indent,
""
);
31
return
0;
32
}
33
34
static
inline
int
spa_debug_port_info
(
int
indent,
const
struct
spa_port_info
*info)
35
{
36
return
spa_debugc_port_info
(NULL, indent, info);
37
}
43
#ifdef __cplusplus
44
}
/* extern "C" */
45
#endif
46
47
#endif
/* SPA_DEBUG_NODE_H */
context.h
spa/debug/context.h
spa_port_info::rate
struct spa_fraction rate
rate of sequence numbers on port
Definition:
node.h:132
spa_port_info::flags
uint64_t flags
port flags
Definition:
node.h:131
spa_debugc
#define spa_debugc(_c, _fmt,...)
Definition:
context.h:38
spa_debug_port_info
static int spa_debug_port_info(int indent, const struct spa_port_info *info)
Definition:
node.h:39
node.h
spa/node/node.h
dict.h
spa/debug/dict.h
spa_port_info
Port information structure.
Definition:
node.h:93
spa_fraction::denom
uint32_t denom
Definition:
defs.h:139
spa_debugc_port_info
static int spa_debugc_port_info(struct spa_debug_context *ctx, int indent, const struct spa_port_info *info)
Definition:
node.h:26
spa_debugc_dict
static int spa_debugc_dict(struct spa_debug_context *ctx, int indent, const struct spa_dict *dict)
Definition:
dict.h:25
spa_fraction::num
uint32_t num
Definition:
defs.h:138
spa_debug_context
Definition:
context.h:34
spa
debug
node.h
Generated by
1.8.20