PipeWire 1.1.0
Loading...
Searching...
No Matches
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
9extern "C" {
10#endif
11
17#include <spa/node/node.h>
18#include <spa/debug/context.h>
19#include <spa/debug/dict.h>
20
21static 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
34static 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 */
spa/debug/dict.h
static int spa_debug_port_info(int indent, const struct spa_port_info *info)
Definition node.h:39
#define spa_debugc(_c, _fmt,...)
Definition context.h:37
static int spa_debugc_dict(struct spa_debug_context *ctx, int indent, const struct spa_dict *dict)
Definition dict.h:25
static int spa_debugc_port_info(struct spa_debug_context *ctx, int indent, const struct spa_port_info *info)
Definition node.h:26
spa/debug/context.h
spa/node/node.h
Definition context.h:33
uint32_t num
Definition defs.h:138
uint32_t denom
Definition defs.h:139
Port information structure.
Definition node.h:93
uint64_t flags
port flags
Definition node.h:131
struct spa_fraction rate
rate of sequence numbers on port
Definition node.h:132