[PATCH 2/2 v2] compat: add compatibility definitions for old MM_MODEM_BAND_EUTRAN_* values

Aleksander Morgado aleksander at aleksander.es
Wed Jun 28 15:25:36 UTC 2017


On Wed, Jun 28, 2017 at 4:08 PM, Ben Chan <benchan at chromium.org> wrote:
> It seems to me that gtk-doc doesn't deal with `static const`
> definitions. One silly workaround is to do something like this:
>

I'll look into supporting that in gtk-doc.

>     /**
>      * OLD_ENUM:
>      *
>      */
>     G_DEPRECATED_FOR(NEW_ENUM)
>     static const int DEPRECATED_OLD_ENUM = NEW_ENUM;
>     #define OLD_ENUM DEPRECATED_OLD_ENUM

Yes, let's do this while we don't have any other approach to have both
compiler and gtk-doc deprecation warnings.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list