From afcd268ea7b1149fbfb66bce4eca659b675da0a2 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 12 Dec 2017 15:53:07 +0100 Subject: New upstream version 1.10.2 --- libnm-core/nm-connection.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'libnm-core/nm-connection.c') diff --git a/libnm-core/nm-connection.c b/libnm-core/nm-connection.c index d5e28f7b..9c88cfd6 100644 --- a/libnm-core/nm-connection.c +++ b/libnm-core/nm-connection.c @@ -16,7 +16,7 @@ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. * - * Copyright 2007 - 2013 Red Hat, Inc. + * Copyright 2007 - 2017 Red Hat, Inc. * Copyright 2007 - 2008 Novell, Inc. */ @@ -2530,6 +2530,22 @@ nm_connection_get_setting_serial (NMConnection *connection) return _connection_get_setting_check (connection, NM_TYPE_SETTING_SERIAL); } +/** + * nm_connection_get_setting_tc_config: + * @connection: the #NMConnection + * + * A shortcut to return any #NMSettingTCConfig the connection might contain. + * + * Returns: (transfer none): an #NMSettingTCConfig if the connection contains one, otherwise %NULL + * + * Since: 1.10.2 + **/ +NMSettingTCConfig * +nm_connection_get_setting_tc_config (NMConnection *connection) +{ + return _connection_get_setting_check (connection, NM_TYPE_SETTING_TC_CONFIG); +} + /** * nm_connection_get_setting_tun: * @connection: the #NMConnection -- cgit 1.3.0-6-gf8a5