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:
Wim Taymans 2023-02-03 10:26:47 +01:00
parent 5ee7be9534
commit caf58ecffb

View file

@ -342,8 +342,13 @@ extern "C" {
* and object name or object.serial */
#ifndef PW_REMOVE_DEPRECATED
#define PW_KEY_PRIORITY_MASTER PW_DEPRECATED("priority.master") /**< deprecated, use priority.driver */
#define PW_KEY_NODE_TARGET PW_DEPRECATED("node.target") /**< deprecated since 0.3.64, use target.object. */
# ifdef PW_ENABLE_DEPRECATED
# 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 */
/** \}