about summary refs log tree commit diff
path: root/src/nm-policy.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2017-05-11 14:55:55 +0200
committerMichael Biebl <biebl@debian.org>2017-05-11 14:55:55 +0200
commitc333f062ddcba9b35330647bf6cbd0a07f2d786e (patch)
tree257c3a0c74c09f4ad2328eab5b932806405f0c1c /src/nm-policy.h
parenta222e56e103f949b148a6942e385ccca2c26d9f3 (diff)
New upstream version 1.8.0 upstream/1.8.0
Diffstat (limited to 'src/nm-policy.h')
-rw-r--r--src/nm-policy.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nm-policy.h b/src/nm-policy.h
index 64cac4fe..2c96e6d0 100644
--- a/src/nm-policy.h
+++ b/src/nm-policy.h
@@ -47,4 +47,21 @@ NMDevice *nm_policy_get_default_ip6_device (NMPolicy *policy);
 NMDevice *nm_policy_get_activating_ip4_device (NMPolicy *policy);
 NMDevice *nm_policy_get_activating_ip6_device (NMPolicy *policy);
 
+/**
+ * NMPolicyHostnameMode
+ * @NM_POLICY_HOSTNAME_MODE_NONE: never update the transient hostname.
+ * @NM_POLICY_HOSTNAME_MODE_DHCP: only hostname from DHCP hostname
+ *   options are eligible to be set as transient hostname.
+ * @NM_POLICY_HOSTNAME_MODE_FULL: NM will try to update the hostname looking
+ *   to current static hostname, DHCP options, reverse IP lookup and externally
+ *   set hostnames.
+ *
+ * NMPolicy's hostname update policy
+ */
+typedef enum {
+	NM_POLICY_HOSTNAME_MODE_NONE,
+	NM_POLICY_HOSTNAME_MODE_DHCP,
+	NM_POLICY_HOSTNAME_MODE_FULL,
+} NMPolicyHostnameMode;
+
 #endif /* __NETWORKMANAGER_POLICY_H__ */