mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
keys: don't use macro to define keys
Make PW_ENABLE_DEPRECATED use the symbol directly without using the PW_DEPRECATED macro to work around rust compiler bug. See #2952
This commit is contained in:
parent
5ee7be9534
commit
caf58ecffb
1 changed files with 7 additions and 2 deletions
|
|
@ -342,8 +342,13 @@ extern "C" {
|
||||||
* and object name or object.serial */
|
* and object name or object.serial */
|
||||||
|
|
||||||
#ifndef PW_REMOVE_DEPRECATED
|
#ifndef PW_REMOVE_DEPRECATED
|
||||||
#define PW_KEY_PRIORITY_MASTER PW_DEPRECATED("priority.master") /**< deprecated, use priority.driver */
|
# ifdef PW_ENABLE_DEPRECATED
|
||||||
#define PW_KEY_NODE_TARGET PW_DEPRECATED("node.target") /**< deprecated since 0.3.64, use target.object. */
|
# define PW_KEY_PRIORITY_MASTER "priority.master" /**< deprecated, use priority.driver */
|
||||||
|
# define PW_KEY_NODE_TARGET "node.target" /**< deprecated since 0.3.64, use target.object. */
|
||||||
|
# else
|
||||||
|
# define PW_KEY_PRIORITY_MASTER PW_DEPRECATED("priority.master")
|
||||||
|
# define PW_KEY_NODE_TARGET PW_DEPRECATED("node.target")
|
||||||
|
# endif /* PW_ENABLE_DEPRECATED */
|
||||||
#endif /* PW_REMOVE_DEPRECATED */
|
#endif /* PW_REMOVE_DEPRECATED */
|
||||||
|
|
||||||
/** \}
|
/** \}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue