[PATCH 2/2 v3] compat: add compatibility definitions for old MM_MODEM_BAND_EUTRAN_* values
Aleksander Morgado
aleksander at aleksander.es
Wed Jun 28 15:24:22 UTC 2017
On Wed, Jun 28, 2017 at 5:08 PM, Ben Chan <benchan at chromium.org> wrote:
> Those Roman numeral suffixes in MM_MODEM_BAND_EUTRAN_* were replaced
> with 1, 2, 3, ..., etc. This patch adds a compatibility header,
> ModemManager-compat.h, to alias the old MM_MODEM_BAND_EUTRAN_* values to
> the new values.
> ---
Could we make it MM_DEPRECATED_...? i.e. to keep the MM_ prefix.
> docs/reference/api/ModemManager-docs.xml | 5 +
> docs/reference/api/ModemManager-sections.txt | 40 +++
> include/Makefile.am | 1 +
> include/ModemManager-compat.h | 468 +++++++++++++++++++++++++++
> include/ModemManager.h | 3 +
> libmm-glib/Makefile.am | 1 +
> 6 files changed, 518 insertions(+)
> create mode 100644 include/ModemManager-compat.h
>
> diff --git a/docs/reference/api/ModemManager-docs.xml b/docs/reference/api/ModemManager-docs.xml
> index 59ab2483..57e33384 100644
> --- a/docs/reference/api/ModemManager-docs.xml
> +++ b/docs/reference/api/ModemManager-docs.xml
> @@ -90,6 +90,11 @@
> <!-- Part 3, Migration reference -->
> <xi:include href="xml/ModemManager-migration-reference.xml"/>
>
> + <part id="ref-compat">
> + <title>Compatibility with older versions</title>
> + <xi:include href="xml/mm-compat.xml"/>
> + </part>
> +
> <index>
> <title>Index</title>
> </index>
> diff --git a/docs/reference/api/ModemManager-sections.txt b/docs/reference/api/ModemManager-sections.txt
> index 91088b8b..1100be99 100644
> --- a/docs/reference/api/ModemManager-sections.txt
> +++ b/docs/reference/api/ModemManager-sections.txt
> @@ -67,3 +67,43 @@ MM_MESSAGE_ERROR_DBUS_PREFIX
> MM_MOBILE_EQUIPMENT_ERROR_DBUS_PREFIX
> MM_SERIAL_ERROR_DBUS_PREFIX
> </SECTION>
> +
> +<SECTION>
> +<FILE>mm-compat</FILE>
> +MM_MODEM_BAND_EUTRAN_I
> +MM_MODEM_BAND_EUTRAN_II
> +MM_MODEM_BAND_EUTRAN_III
> +MM_MODEM_BAND_EUTRAN_IV
> +MM_MODEM_BAND_EUTRAN_V
> +MM_MODEM_BAND_EUTRAN_VI
> +MM_MODEM_BAND_EUTRAN_VII
> +MM_MODEM_BAND_EUTRAN_VIII
> +MM_MODEM_BAND_EUTRAN_IX
> +MM_MODEM_BAND_EUTRAN_X
> +MM_MODEM_BAND_EUTRAN_XI
> +MM_MODEM_BAND_EUTRAN_XII
> +MM_MODEM_BAND_EUTRAN_XIII
> +MM_MODEM_BAND_EUTRAN_XIV
> +MM_MODEM_BAND_EUTRAN_XVII
> +MM_MODEM_BAND_EUTRAN_XVIII
> +MM_MODEM_BAND_EUTRAN_XIX
> +MM_MODEM_BAND_EUTRAN_XX
> +MM_MODEM_BAND_EUTRAN_XXI
> +MM_MODEM_BAND_EUTRAN_XXII
> +MM_MODEM_BAND_EUTRAN_XXIII
> +MM_MODEM_BAND_EUTRAN_XXIV
> +MM_MODEM_BAND_EUTRAN_XXV
> +MM_MODEM_BAND_EUTRAN_XXVI
> +MM_MODEM_BAND_EUTRAN_XXXIII
> +MM_MODEM_BAND_EUTRAN_XXXIV
> +MM_MODEM_BAND_EUTRAN_XXXV
> +MM_MODEM_BAND_EUTRAN_XXXVI
> +MM_MODEM_BAND_EUTRAN_XXXVII
> +MM_MODEM_BAND_EUTRAN_XXXVIII
> +MM_MODEM_BAND_EUTRAN_XXXIX
> +MM_MODEM_BAND_EUTRAN_XL
> +MM_MODEM_BAND_EUTRAN_XLI
> +MM_MODEM_BAND_EUTRAN_XLII
> +MM_MODEM_BAND_EUTRAN_XLIII
> +MM_MODEM_BAND_EUTRAN_XLIV
> +</SECTION>
> diff --git a/include/Makefile.am b/include/Makefile.am
> index 424b51c3..237ee6bd 100644
> --- a/include/Makefile.am
> +++ b/include/Makefile.am
> @@ -8,6 +8,7 @@ include_HEADERS = \
> ModemManager-names.h \
> ModemManager-enums.h \
> ModemManager-errors.h \
> + ModemManager-compat.h \
> ModemManager-version.h \
> ModemManager.h
>
> diff --git a/include/ModemManager-compat.h b/include/ModemManager-compat.h
> new file mode 100644
> index 00000000..a49b7470
> --- /dev/null
> +++ b/include/ModemManager-compat.h
> @@ -0,0 +1,468 @@
> +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
> +/*
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details:
> + *
> + * Copyright (C) 2017 Google, Inc.
> + */
> +
> +#ifndef _MODEMMANAGER_COMPAT_H_
> +#define _MODEMMANAGER_COMPAT_H_
> +
> +#if !defined (__MODEM_MANAGER_H_INSIDE__)
> +#error "Only <ModemManager.h> can be included directly."
> +#endif
> +
> +#include <glib.h>
> +
> +#include <ModemManager-enums.h>
> +
> +/**
> + * SECTION:mm-compat
> + * @title: API break replacements
> + *
> + * These compatibility types and methods are flagged as deprecated and
> + * therefore shouldn't be used in newly written code. They are provided to
> + * avoid unnecessary API/ABI breaks.
> + */
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_I:
> + *
> + * E-UTRAN band 1.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_1 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_1)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_I = MM_MODEM_BAND_EUTRAN_1;
> +#define MM_MODEM_BAND_EUTRAN_I DEPRECATED_MM_MODEM_BAND_EUTRAN_I
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_II:
> + *
> + * E-UTRAN band 2.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_2 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_2)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_II = MM_MODEM_BAND_EUTRAN_2;
> +#define MM_MODEM_BAND_EUTRAN_II DEPRECATED_MM_MODEM_BAND_EUTRAN_II
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_III:
> + *
> + * E-UTRAN band 3.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_3 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_3)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_III = MM_MODEM_BAND_EUTRAN_3;
> +#define MM_MODEM_BAND_EUTRAN_III DEPRECATED_MM_MODEM_BAND_EUTRAN_III
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_IV:
> + *
> + * E-UTRAN band 4.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_4 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_4)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_IV = MM_MODEM_BAND_EUTRAN_4;
> +#define MM_MODEM_BAND_EUTRAN_IV DEPRECATED_MM_MODEM_BAND_EUTRAN_IV
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_V:
> + *
> + * E-UTRAN band 5.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_5 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_5)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_V = MM_MODEM_BAND_EUTRAN_5;
> +#define MM_MODEM_BAND_EUTRAN_V DEPRECATED_MM_MODEM_BAND_EUTRAN_V
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_VI:
> + *
> + * E-UTRAN band 6.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_6 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_6)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_VI = MM_MODEM_BAND_EUTRAN_6;
> +#define MM_MODEM_BAND_EUTRAN_VI DEPRECATED_MM_MODEM_BAND_EUTRAN_VI
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_VII:
> + *
> + * E-UTRAN band 7.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_7 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_7)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_VII = MM_MODEM_BAND_EUTRAN_7;
> +#define MM_MODEM_BAND_EUTRAN_VII DEPRECATED_MM_MODEM_BAND_EUTRAN_VII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_VIII:
> + *
> + * E-UTRAN band 8.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_8 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_8)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_VIII = MM_MODEM_BAND_EUTRAN_8;
> +#define MM_MODEM_BAND_EUTRAN_VIII DEPRECATED_MM_MODEM_BAND_EUTRAN_VIII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_IX:
> + *
> + * E-UTRAN band 9.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_9 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_9)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_IX = MM_MODEM_BAND_EUTRAN_9;
> +#define MM_MODEM_BAND_EUTRAN_IX DEPRECATED_MM_MODEM_BAND_EUTRAN_IX
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_X:
> + *
> + * E-UTRAN band 10.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_10 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_10)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_X = MM_MODEM_BAND_EUTRAN_10;
> +#define MM_MODEM_BAND_EUTRAN_X DEPRECATED_MM_MODEM_BAND_EUTRAN_X
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XI:
> + *
> + * E-UTRAN band 11.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_11 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_11)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XI = MM_MODEM_BAND_EUTRAN_11;
> +#define MM_MODEM_BAND_EUTRAN_XI DEPRECATED_MM_MODEM_BAND_EUTRAN_XI
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XII:
> + *
> + * E-UTRAN band 12.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_12 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_12)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XII = MM_MODEM_BAND_EUTRAN_12;
> +#define MM_MODEM_BAND_EUTRAN_XII DEPRECATED_MM_MODEM_BAND_EUTRAN_XII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XIII:
> + *
> + * E-UTRAN band 13.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_13 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_13)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XIII = MM_MODEM_BAND_EUTRAN_13;
> +#define MM_MODEM_BAND_EUTRAN_XIII DEPRECATED_MM_MODEM_BAND_EUTRAN_XIII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XIV:
> + *
> + * E-UTRAN band 14.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_14 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_14)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XIV = MM_MODEM_BAND_EUTRAN_14;
> +#define MM_MODEM_BAND_EUTRAN_XIV DEPRECATED_MM_MODEM_BAND_EUTRAN_XIV
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XVII:
> + *
> + * E-UTRAN band 17.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_17 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_17)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XVII = MM_MODEM_BAND_EUTRAN_17;
> +#define MM_MODEM_BAND_EUTRAN_XVII DEPRECATED_MM_MODEM_BAND_EUTRAN_XVII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XVIII:
> + *
> + * E-UTRAN band 18.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_18 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_18)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XVIII = MM_MODEM_BAND_EUTRAN_18;
> +#define MM_MODEM_BAND_EUTRAN_XVIII DEPRECATED_MM_MODEM_BAND_EUTRAN_XVIII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XIX:
> + *
> + * E-UTRAN band 19.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_19 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_19)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XIX = MM_MODEM_BAND_EUTRAN_19;
> +#define MM_MODEM_BAND_EUTRAN_XIX DEPRECATED_MM_MODEM_BAND_EUTRAN_XIX
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XX:
> + *
> + * E-UTRAN band 20.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_20 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_20)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XX = MM_MODEM_BAND_EUTRAN_20;
> +#define MM_MODEM_BAND_EUTRAN_XX DEPRECATED_MM_MODEM_BAND_EUTRAN_XX
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXI:
> + *
> + * E-UTRAN band 21.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_21 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_21)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXI = MM_MODEM_BAND_EUTRAN_21;
> +#define MM_MODEM_BAND_EUTRAN_XXI DEPRECATED_MM_MODEM_BAND_EUTRAN_XXI
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXII:
> + *
> + * E-UTRAN band 22.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_22 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_22)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXII = MM_MODEM_BAND_EUTRAN_22;
> +#define MM_MODEM_BAND_EUTRAN_XXII DEPRECATED_MM_MODEM_BAND_EUTRAN_XXII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXIII:
> + *
> + * E-UTRAN band 23.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_23 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_23)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXIII = MM_MODEM_BAND_EUTRAN_23;
> +#define MM_MODEM_BAND_EUTRAN_XXIII DEPRECATED_MM_MODEM_BAND_EUTRAN_XXIII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXIV:
> + *
> + * E-UTRAN band 24.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_24 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_24)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXIV = MM_MODEM_BAND_EUTRAN_24;
> +#define MM_MODEM_BAND_EUTRAN_XXIV DEPRECATED_MM_MODEM_BAND_EUTRAN_XXIV
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXV:
> + *
> + * E-UTRAN band 25.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_25 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_25)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXV = MM_MODEM_BAND_EUTRAN_25;
> +#define MM_MODEM_BAND_EUTRAN_XXV DEPRECATED_MM_MODEM_BAND_EUTRAN_XXV
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXVI:
> + *
> + * E-UTRAN band 26.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_26 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_26)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXVI = MM_MODEM_BAND_EUTRAN_26;
> +#define MM_MODEM_BAND_EUTRAN_XXVI DEPRECATED_MM_MODEM_BAND_EUTRAN_XXVI
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXXIII:
> + *
> + * E-UTRAN band 33.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_33 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_33)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXIII = MM_MODEM_BAND_EUTRAN_33;
> +#define MM_MODEM_BAND_EUTRAN_XXXIII DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXIII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXXIV:
> + *
> + * E-UTRAN band 34.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_34 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_34)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXIV = MM_MODEM_BAND_EUTRAN_34;
> +#define MM_MODEM_BAND_EUTRAN_XXXIV DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXIV
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXXV:
> + *
> + * E-UTRAN band 35.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_35 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_35)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXV = MM_MODEM_BAND_EUTRAN_35;
> +#define MM_MODEM_BAND_EUTRAN_XXXV DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXV
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXXVI:
> + *
> + * E-UTRAN band 36.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_36 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_36)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXVI = MM_MODEM_BAND_EUTRAN_36;
> +#define MM_MODEM_BAND_EUTRAN_XXXVI DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXVI
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXXVII:
> + *
> + * E-UTRAN band 37.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_37 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_37)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXVII = MM_MODEM_BAND_EUTRAN_37;
> +#define MM_MODEM_BAND_EUTRAN_XXXVII DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXVII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXXVIII:
> + *
> + * E-UTRAN band 38.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_38 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_38)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXVIII = MM_MODEM_BAND_EUTRAN_38;
> +#define MM_MODEM_BAND_EUTRAN_XXXVIII DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXVIII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XXXIX:
> + *
> + * E-UTRAN band 39.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_39 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_39)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXIX = MM_MODEM_BAND_EUTRAN_39;
> +#define MM_MODEM_BAND_EUTRAN_XXXIX DEPRECATED_MM_MODEM_BAND_EUTRAN_XXXIX
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XL:
> + *
> + * E-UTRAN band 40.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_40 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_40)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XL = MM_MODEM_BAND_EUTRAN_40;
> +#define MM_MODEM_BAND_EUTRAN_XL DEPRECATED_MM_MODEM_BAND_EUTRAN_XL
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XLI:
> + *
> + * E-UTRAN band 41.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_41 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_41)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XLI = MM_MODEM_BAND_EUTRAN_41;
> +#define MM_MODEM_BAND_EUTRAN_XLI DEPRECATED_MM_MODEM_BAND_EUTRAN_XLI
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XLII:
> + *
> + * E-UTRAN band 42.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_42 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_42)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XLII = MM_MODEM_BAND_EUTRAN_42;
> +#define MM_MODEM_BAND_EUTRAN_XLII DEPRECATED_MM_MODEM_BAND_EUTRAN_XLII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XLIII:
> + *
> + * E-UTRAN band 43.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_43 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_43)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XLIII = MM_MODEM_BAND_EUTRAN_43;
> +#define MM_MODEM_BAND_EUTRAN_XLIII DEPRECATED_MM_MODEM_BAND_EUTRAN_XLIII
> +
> +/**
> + * MM_MODEM_BAND_EUTRAN_XLIV:
> + *
> + * E-UTRAN band 44.
> + *
> + * Since: 1.0
> + * Deprecated: 1.8.0: Use #MM_MODEM_BAND_EUTRAN_44 instead.
> + */
> +G_DEPRECATED_FOR (MM_MODEM_BAND_EUTRAN_44)
> +static const int DEPRECATED_MM_MODEM_BAND_EUTRAN_XLIV = MM_MODEM_BAND_EUTRAN_44;
> +#define MM_MODEM_BAND_EUTRAN_XLIV DEPRECATED_MM_MODEM_BAND_EUTRAN_XLIV
> +
> +#endif /* _MODEMMANAGER_COMPAT_H_ */
> diff --git a/include/ModemManager.h b/include/ModemManager.h
> index 3a6eb43c..3db9a664 100644
> --- a/include/ModemManager.h
> +++ b/include/ModemManager.h
> @@ -37,6 +37,9 @@
> /* Public header with errors */
> #include <ModemManager-errors.h>
>
> +/* Public header with compability types and methods */
> +#include <ModemManager-compat.h>
> +
> /* Public header with version info */
> #include <ModemManager-version.h>
>
> diff --git a/libmm-glib/Makefile.am b/libmm-glib/Makefile.am
> index 64bca40e..7d554ad0 100644
> --- a/libmm-glib/Makefile.am
> +++ b/libmm-glib/Makefile.am
> @@ -186,6 +186,7 @@ PUBLIC_H = \
> ModemManager-version.h
> ModemManager-enums.h \
> ModemManager-errors.h \
> + ModemManager-compat.h \
> ModemManager.h \
> $(NULL)
>
> --
> 2.13.2.725.g09c95d1e9-goog
>
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list