2020-12-23 22:21:36 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2014-10-21 22:30:31 -04:00
|
|
|
/*
|
2019-10-01 09:20:35 +02:00
|
|
|
* Copyright (C) 2014 Red Hat, Inc.
|
2014-10-21 22:30:31 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __NM_CONNECTION_PRIVATE_H__
|
|
|
|
|
#define __NM_CONNECTION_PRIVATE_H__
|
|
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
#if !((NETWORKMANAGER_COMPILATION) &NM_NETWORKMANAGER_COMPILATION_WITH_LIBNM_CORE_PRIVATE)
|
|
|
|
|
#error Cannot use this header.
|
2018-01-02 13:37:06 +01:00
|
|
|
#endif
|
|
|
|
|
|
2014-10-21 22:30:31 -04:00
|
|
|
#include "nm-setting.h"
|
|
|
|
|
#include "nm-connection.h"
|
|
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
NMSetting *_nm_connection_find_base_type_setting(NMConnection *connection);
|
2014-10-21 22:30:31 -04:00
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
const char *_nm_connection_detect_slave_type(NMConnection *connection, NMSetting **out_s_port);
|
2014-10-21 22:30:31 -04:00
|
|
|
|
2020-12-09 10:41:05 +01:00
|
|
|
gboolean _nm_connection_detect_slave_type_full(NMSettingConnection *s_con,
|
|
|
|
|
NMConnection * connection,
|
|
|
|
|
const char ** out_slave_type,
|
|
|
|
|
const char ** out_normerr_slave_setting_type,
|
|
|
|
|
const char ** out_normerr_missing_slave_type,
|
|
|
|
|
const char **out_normerr_missing_slave_type_port,
|
|
|
|
|
GError ** error);
|
|
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
const char *_nm_connection_detect_bluetooth_type(NMConnection *self);
|
2017-08-23 14:05:12 +02:00
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
gboolean _nm_connection_verify_required_interface_name(NMConnection *connection, GError **error);
|
2014-10-21 22:30:31 -04:00
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
int _nm_setting_ovs_interface_verify_interface_type(NMSettingOvsInterface *self,
|
|
|
|
|
const char * type,
|
|
|
|
|
NMConnection * connection,
|
|
|
|
|
gboolean normalize,
|
|
|
|
|
gboolean * out_modified,
|
|
|
|
|
const char ** out_normalized_type,
|
|
|
|
|
GError ** error);
|
2017-10-27 14:30:18 +02:00
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
#endif /* __NM_CONNECTION_PRIVATE_H__ */
|