diff options
Diffstat (limited to 'libnm-core/nm-connection.c')
| -rw-r--r-- | libnm-core/nm-connection.c | 18 |
1 files changed, 17 insertions, 1 deletions
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. */ @@ -2531,6 +2531,22 @@ nm_connection_get_setting_serial (NMConnection *connection) } /** + * 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 * |