summaryrefslogtreecommitdiff
path: root/src/network/networkd-manager.h
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-11-21 23:15:41 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2016-11-23 16:32:06 +0100
commit59eb33e0fec9b1502a9089561dcfda3f16a1816e (patch)
treeb861cc79d6a5e0eebb1e521a8cfbd34034eaaaab /src/network/networkd-manager.h
parent3d4cf7de48a74726694abbaa09f9804b845ff3ba (diff)
networkd: move setting hostname and timezone to Manager
Hostname and time zone are global settings, not link specific. Move these methods from Link into Manager.
Diffstat (limited to 'src/network/networkd-manager.h')
-rw-r--r--src/network/networkd-manager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-manager.h b/src/network/networkd-manager.h
index a90d9a933f..13363c70fa 100644
--- a/src/network/networkd-manager.h
+++ b/src/network/networkd-manager.h
@@ -97,5 +97,8 @@ int manager_address_pool_acquire(Manager *m, int family, unsigned prefixlen, uni
Link* manager_find_uplink(Manager *m, Link *exclude);
+int manager_set_hostname(Manager *m, const char *hostname);
+int manager_set_timezone(Manager *m, const char *timezone);
+
DEFINE_TRIVIAL_CLEANUP_FUNC(Manager*, manager_free);
#define _cleanup_manager_free_ _cleanup_(manager_freep)