diff options
| author | Michael Biebl <biebl@debian.org> | 2020-10-05 22:27:18 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-10-05 22:27:18 +0200 |
| commit | aafc1dbe4712c86189bbc1d4d54ad8cb4c69be7e (patch) | |
| tree | a2a9bb4d007339a0b1304540388230ccedac32bd /src/dns/nm-dns-plugin.h | |
| parent | e7b44ef4c80907346ec7492a09c45277459924fc (diff) | |
New upstream version 1.27.90 upstream/1.27.90
Diffstat (limited to 'src/dns/nm-dns-plugin.h')
| -rw-r--r-- | src/dns/nm-dns-plugin.h | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/src/dns/nm-dns-plugin.h b/src/dns/nm-dns-plugin.h index 78823739..5e87f59b 100644 --- a/src/dns/nm-dns-plugin.h +++ b/src/dns/nm-dns-plugin.h @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2010 Red Hat, Inc. */ @@ -9,55 +9,57 @@ #include "nm-dns-manager.h" #include "nm-config-data.h" -#define NM_TYPE_DNS_PLUGIN (nm_dns_plugin_get_type ()) -#define NM_DNS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DNS_PLUGIN, NMDnsPlugin)) -#define NM_DNS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_DNS_PLUGIN, NMDnsPluginClass)) -#define NM_IS_DNS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_DNS_PLUGIN)) -#define NM_IS_DNS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_DNS_PLUGIN)) -#define NM_DNS_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_DNS_PLUGIN, NMDnsPluginClass)) +#define NM_TYPE_DNS_PLUGIN (nm_dns_plugin_get_type()) +#define NM_DNS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_DNS_PLUGIN, NMDnsPlugin)) +#define NM_DNS_PLUGIN_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_DNS_PLUGIN, NMDnsPluginClass)) +#define NM_IS_DNS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_DNS_PLUGIN)) +#define NM_IS_DNS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_DNS_PLUGIN)) +#define NM_DNS_PLUGIN_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_DNS_PLUGIN, NMDnsPluginClass)) typedef struct { - GObject parent; + GObject parent; } NMDnsPlugin; typedef struct { - GObjectClass parent; + GObjectClass parent; - /* Called when DNS information is changed. 'configs' is an array - * of pointers to NMDnsIPConfigData sorted by priority. - * 'global_config' is the optional global DNS - * configuration. - */ - gboolean (*update) (NMDnsPlugin *self, - const NMGlobalDnsConfig *global_config, - const CList *ip_config_lst_head, - const char *hostname, - GError **error); + /* Called when DNS information is changed. 'configs' is an array + * of pointers to NMDnsIPConfigData sorted by priority. + * 'global_config' is the optional global DNS + * configuration. + */ + gboolean (*update)(NMDnsPlugin * self, + const NMGlobalDnsConfig *global_config, + const CList * ip_config_lst_head, + const char * hostname, + GError ** error); - void (*stop) (NMDnsPlugin *self); + void (*stop)(NMDnsPlugin *self); - const char *plugin_name; + const char *plugin_name; - /* Types should set to TRUE if they start a local caching nameserver - * that listens on localhost and would block any other local caching - * nameserver from operating. - */ - bool is_caching:1; + /* Types should set to TRUE if they start a local caching nameserver + * that listens on localhost and would block any other local caching + * nameserver from operating. + */ + bool is_caching : 1; } NMDnsPluginClass; -GType nm_dns_plugin_get_type (void); +GType nm_dns_plugin_get_type(void); -gboolean nm_dns_plugin_is_caching (NMDnsPlugin *self); +gboolean nm_dns_plugin_is_caching(NMDnsPlugin *self); -const char *nm_dns_plugin_get_name (NMDnsPlugin *self); +const char *nm_dns_plugin_get_name(NMDnsPlugin *self); -gboolean nm_dns_plugin_update (NMDnsPlugin *self, - const NMGlobalDnsConfig *global_config, - const CList *ip_config_lst_head, - const char *hostname, - GError **error); +gboolean nm_dns_plugin_update(NMDnsPlugin * self, + const NMGlobalDnsConfig *global_config, + const CList * ip_config_lst_head, + const char * hostname, + GError ** error); -void nm_dns_plugin_stop (NMDnsPlugin *self); +void nm_dns_plugin_stop(NMDnsPlugin *self); #endif /* __NM_DNS_PLUGIN_H__ */ |