summaryrefslogtreecommitdiff
path: root/docs/reference/libqmi-glib/libqmi-glib-common.sections
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-09-13 19:13:28 +0200
committerAleksander Morgado <aleksander@aleksander.es>2017-09-13 19:14:53 +0200
commitca39b63c68346f019e8aa5ecf2505e645e921532 (patch)
tree8bdda30161acead876654bcf549a5bb18bc28fe5 /docs/reference/libqmi-glib/libqmi-glib-common.sections
parentebe371dd93ad9b64804eb6dbebc0bbbb5fe50294 (diff)
api: don't use intermediate variables for deprecation warnings
Using an intermediate constant variable breaks compilation with C compilers, as these variables cannot be used as initializers. Instead, define a deprecated type and cast all deprecated symbols to that type. We lose the information about what the new replacement symbol is, but we don't break compilation. Also, add QMI_DISABLE_DEPRECATED guards around deprecated symbols. So that when this symbol is defined, e.g. via CFLAGS, building a program that uses the libmbim API will fail if the program references deprecated symbols. For now we just use it to keep gtk-doc-scan happy and avoid unnecessary warnings. Equivalent to ModemManager commits eedd4ab4457 and f0bb6ef856.
Diffstat (limited to 'docs/reference/libqmi-glib/libqmi-glib-common.sections')
-rw-r--r--docs/reference/libqmi-glib/libqmi-glib-common.sections3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/reference/libqmi-glib/libqmi-glib-common.sections b/docs/reference/libqmi-glib/libqmi-glib-common.sections
index 0c93808..5258c1e 100644
--- a/docs/reference/libqmi-glib/libqmi-glib-common.sections
+++ b/docs/reference/libqmi-glib/libqmi-glib-common.sections
@@ -1238,4 +1238,7 @@ QMI_WDS_CDMA_CAUSE_CODE_GENERAL_UNRECOGNIZED_PARAMETER_VALUE
QMI_WDS_CDMA_CAUSE_CODE_GENERAL_UNEXPECTED_PARAMETER_VALUE
QMI_WDS_CDMA_CAUSE_CODE_GENERAL_USER_DATA_SIZE_ERROR
QMI_WDS_CDMA_CAUSE_CODE_GENERAL_OTHER
+<SUBSECTION Private>
+QmiDeprecatedNasSimRejectState
+QmiDeprecatedWdsCdmaCauseCode
</SECTION>