From af00e39dd24644b8c979258e5579b43b88364d2f Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Tue, 5 Oct 2021 10:38:35 +0200 Subject: [PATCH] libnm: add NMIPAddress and NMIPRoute dups backported symbols from 1.30.8 The nm_ip_address_dup() and nm_ip_route_dup() symbols were exposed in libnm 1.32 and then backported to 1.30.8. Export it also with version @libnm_1_30_8; this allows a program build against libnm 1.30.8 to keep working with later versions of the library. Signed-off-by: Fernando Fernandez Mancera (cherry picked from commit ec8df200f682c6726c1da624b5ae3984c4991056) --- src/libnm-client-impl/libnm.ver | 2 ++ src/libnm-client-impl/nm-client.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/src/libnm-client-impl/libnm.ver b/src/libnm-client-impl/libnm.ver index 91511d6334..573c21b95a 100644 --- a/src/libnm-client-impl/libnm.ver +++ b/src/libnm-client-impl/libnm.ver @@ -1786,6 +1786,8 @@ global: } libnm_1_28_0; libnm_1_30_8 { + #nm_ip_address_dup@libnm_1_30_8; + #nm_ip_route_dup@libnm_1_30_8; #nm_setting_ip_config_get_required_timeout@libnm_1_30_8; } libnm_1_30_0; diff --git a/src/libnm-client-impl/nm-client.c b/src/libnm-client-impl/nm-client.c index 8e7fb7ae8b..cd637a953a 100644 --- a/src/libnm-client-impl/nm-client.c +++ b/src/libnm-client-impl/nm-client.c @@ -8838,3 +8838,11 @@ NM_BACKPORT_SYMBOL(libnm_1_30_8, nm_setting_ip_config_get_required_timeout, (NMSettingIPConfig * setting), (setting)); + +NM_BACKPORT_SYMBOL(libnm_1_30_8, + NMIPAddress *, + nm_ip_address_dup, + (NMIPAddress * address), + (address)); + +NM_BACKPORT_SYMBOL(libnm_1_30_8, NMIPRoute *, nm_ip_route_dup, (NMIPRoute * route), (route));