From: Bartosz Golaszewski Date: Tue, 2 Oct 2018 12:49:17 +0000 (+0200) Subject: API: add a macro for marking deprecated functions X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=99bc2260bddfa409a1ad3cb78470b4a9593e9d3e;p=qemu-gpiodev%2Flibgpiod.git API: add a macro for marking deprecated functions We want to deprecate the badly designed event loop functions. Introduce a macro that allows marking API routines as deprecated. Signed-off-by: Bartosz Golaszewski --- diff --git a/include/gpiod.h b/include/gpiod.h index 513b9e7..7272462 100644 --- a/include/gpiod.h +++ b/include/gpiod.h @@ -69,6 +69,11 @@ struct gpiod_line_bulk; */ #define GPIOD_BIT(nr) (1UL << (nr)) +/** + * @brief Marks a public function as deprecated. + */ +#define GPIOD_DEPRECATED __attribute__((deprecated)) + /** * @} *