diff options
author | Thomas Haller <thaller@redhat.com> | 2017-04-23 00:40:46 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-05-12 17:29:33 +0200 |
commit | 5bfb7c3c89afe4da5b1ac2395391e9a986c722f0 (patch) | |
tree | 6c7ac733441dfb8e1478162dd1390b8e0d780685 /src/settings/nm-settings.h | |
parent | f3dfe0f745d2cfdab638804980e5e8501112183f (diff) | |
download | NetworkManager-5bfb7c3c89afe4da5b1ac2395391e9a986c722f0.tar.gz |
hostname: split out hostname management from NMSettings
Hostname management is complicated. At least, how it is implemented currently.
For example, NMPolicy also sets the hostname (NMPolicy calls
nm_settings_set_transient_hostname() to have hostnamed set the hostname,
but then falls back to sethostname() in settings_set_hostname_cb()).
Also, NMManager tracks the hostname in NM_MANAGER_HOSTNAME too, and
NMPolicy listens to changes from there -- instead of changes from
NMSettings.
Eventually, NMHostnameManager should contain the hostname parts from NMSettings
and NMPolicy.
Diffstat (limited to 'src/settings/nm-settings.h')
-rw-r--r-- | src/settings/nm-settings.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/settings/nm-settings.h b/src/settings/nm-settings.h index 7110a12ba8..eede76b029 100644 --- a/src/settings/nm-settings.h +++ b/src/settings/nm-settings.h @@ -119,20 +119,10 @@ gboolean nm_settings_has_connection (NMSettings *self, NMSettingsConnection *con const GSList *nm_settings_get_unmanaged_specs (NMSettings *self); -char *nm_settings_get_hostname (NMSettings *self); - void nm_settings_device_added (NMSettings *self, NMDevice *device); void nm_settings_device_removed (NMSettings *self, NMDevice *device, gboolean quitting); gboolean nm_settings_get_startup_complete (NMSettings *self); -void nm_settings_set_transient_hostname (NMSettings *self, - const char *hostname, - NMSettingsSetHostnameCb cb, - gpointer user_data); - -gboolean nm_settings_get_transient_hostname (NMSettings *self, - char **hostname); - #endif /* __NM_SETTINGS_H__ */ |