mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 02:10:17 +01:00
dns: make configs argument to update a const pointer
This commit is contained in:
parent
1c9285b06e
commit
d582176939
5 changed files with 7 additions and 7 deletions
|
|
@ -554,7 +554,7 @@ start_dnsmasq (NMDnsDnsmasq *self)
|
|||
|
||||
static gboolean
|
||||
update (NMDnsPlugin *plugin,
|
||||
const NMDnsIPConfigData **configs,
|
||||
const NMDnsIPConfigData *const*configs,
|
||||
const NMGlobalDnsConfig *global_config,
|
||||
const char *hostname)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ G_DEFINE_TYPE_EXTENDED (NMDnsPlugin, nm_dns_plugin, G_TYPE_OBJECT, G_TYPE_FLAG_A
|
|||
|
||||
gboolean
|
||||
nm_dns_plugin_update (NMDnsPlugin *self,
|
||||
const NMDnsIPConfigData **configs,
|
||||
const NMDnsIPConfigData *const*configs,
|
||||
const NMGlobalDnsConfig *global_config,
|
||||
const char *hostname)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ typedef struct {
|
|||
* configuration.
|
||||
*/
|
||||
gboolean (*update) (NMDnsPlugin *self,
|
||||
const NMDnsIPConfigData **configs,
|
||||
const NMDnsIPConfigData *const*configs,
|
||||
const NMGlobalDnsConfig *global_config,
|
||||
const char *hostname);
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ gboolean nm_dns_plugin_is_caching (NMDnsPlugin *self);
|
|||
const char *nm_dns_plugin_get_name (NMDnsPlugin *self);
|
||||
|
||||
gboolean nm_dns_plugin_update (NMDnsPlugin *self,
|
||||
const NMDnsIPConfigData **configs,
|
||||
const NMDnsIPConfigData *const*configs,
|
||||
const NMGlobalDnsConfig *global_config,
|
||||
const char *hostname);
|
||||
|
||||
|
|
|
|||
|
|
@ -288,13 +288,13 @@ send_updates (NMDnsSystemdResolved *self)
|
|||
|
||||
static gboolean
|
||||
update (NMDnsPlugin *plugin,
|
||||
const NMDnsIPConfigData **configs,
|
||||
const NMDnsIPConfigData *const*configs,
|
||||
const NMGlobalDnsConfig *global_config,
|
||||
const char *hostname)
|
||||
{
|
||||
NMDnsSystemdResolved *self = NM_DNS_SYSTEMD_RESOLVED (plugin);
|
||||
GArray *interfaces = g_array_new (TRUE, TRUE, sizeof (InterfaceConfig));
|
||||
const NMDnsIPConfigData **c;
|
||||
const NMDnsIPConfigData *const*c;
|
||||
int i;
|
||||
|
||||
for (c = configs; *c != NULL; c++)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ G_DEFINE_TYPE (NMDnsUnbound, nm_dns_unbound, NM_TYPE_DNS_PLUGIN)
|
|||
|
||||
static gboolean
|
||||
update (NMDnsPlugin *plugin,
|
||||
const NMDnsIPConfigData **configs,
|
||||
const NMDnsIPConfigData *const*configs,
|
||||
const NMGlobalDnsConfig *global_config,
|
||||
const char *hostname)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue