tests: add deprecated-since attributes

Add a new event and enum entry to small.xml with a deprecated-since
attribute to exercise the scanner code generation.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2024-04-08 13:32:31 +02:00
parent da8e1bbc45
commit 80c65f862f
8 changed files with 105 additions and 3 deletions

View file

@ -85,6 +85,12 @@ enum intf_A_foo {
* @since 2
*/
INTF_A_FOO_NEGATIVE = -1,
/**
* this is a deprecated value
* @since 2
* @deprecated Deprecated since version 3
*/
INTF_A_FOO_DEPRECATED = 3,
};
/**
* @ingroup iface_intf_A
@ -94,6 +100,10 @@ enum intf_A_foo {
* @ingroup iface_intf_A
*/
#define INTF_A_FOO_NEGATIVE_SINCE_VERSION 2
/**
* @ingroup iface_intf_A
*/
#define INTF_A_FOO_DEPRECATED_SINCE_VERSION 2
#endif /* INTF_A_FOO_ENUM */
/**
@ -105,6 +115,12 @@ struct intf_A_listener {
*/
void (*hey)(void *data,
struct intf_A *intf_A);
/**
* @since 2
* @deprecated Deprecated since version 3
*/
void (*yo)(void *data,
struct intf_A *intf_A);
};
/**
@ -126,6 +142,10 @@ intf_A_add_listener(struct intf_A *intf_A,
* @ingroup iface_intf_A
*/
#define INTF_A_HEY_SINCE_VERSION 1
/**
* @ingroup iface_intf_A
*/
#define INTF_A_YO_SINCE_VERSION 2
/**
* @ingroup iface_intf_A