diff options
author | Thomas Haller <thaller@redhat.com> | 2014-07-09 18:54:47 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-02-03 13:01:53 +0100 |
commit | 82cfd5ad47b43de640dfa2dd60c4b84f0857e6a5 (patch) | |
tree | 9404d175ca3d731a6f700373eb158a9ec3ede586 /src/nm-config.h | |
parent | d62022e28a508070e3d5ef089ab4e17dd45d3b23 (diff) | |
download | NetworkManager-82cfd5ad47b43de640dfa2dd60c4b84f0857e6a5.tar.gz |
config: add support for reloading of configuration
No actual reloading is yet implemented. Later we will decide
on specific configuration parameters where we support reloading.
They must be then implemented one-by-one.
Some configuration parameters can be set via command line.
If a parameter is set from command line, the original value
from command line will still be preserved after reloading.
Diffstat (limited to 'src/nm-config.h')
-rw-r--r-- | src/nm-config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nm-config.h b/src/nm-config.h index 3b0ee6cfae..68f1a4ed30 100644 --- a/src/nm-config.h +++ b/src/nm-config.h @@ -37,6 +37,9 @@ G_BEGIN_DECLS #define NM_IS_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_CONFIG)) #define NM_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_CONFIG, NMConfigClass)) +/* Signals */ +#define NM_CONFIG_SIGNAL_CONFIG_CHANGED "config-changed" + typedef struct NMConfigCmdLineOptions NMConfigCmdLineOptions; struct _NMConfig { @@ -45,6 +48,9 @@ struct _NMConfig { typedef struct { GObjectClass parent; + + /* Signals */ + void (*config_changed) (NMConfig *config, GHashTable *changes, NMConfigData *old_data); } NMConfigClass; GType nm_config_get_type (void); @@ -80,6 +86,7 @@ void nm_config_cmd_line_options_add_to_entries (NMConfigCmdLi NMConfig *nm_config_new (const NMConfigCmdLineOptions *cli, GError **error); NMConfig *nm_config_setup (const NMConfigCmdLineOptions *cli, GError **error); +void nm_config_reload (NMConfig *config); G_END_DECLS |