summary refs log tree commit diff
path: root/src/nm-policy-hostname.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2010-11-29 19:00:22 +0100
committerMichael Biebl <biebl@debian.org>2010-11-29 19:00:22 +0100
commita6b89d35fabd9f5934b84d7cde22e9268f92c3d3 (patch)
tree9e44755880d5933fcc90c6008d4585a76298a1bd /src/nm-policy-hostname.h
parent9fae01fa351805b2903e535736e06971bc0b925e (diff)
Imported Upstream version 0.8.2 upstream/0.8.2
Diffstat (limited to 'src/nm-policy-hostname.h')
-rw-r--r--src/nm-policy-hostname.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/nm-policy-hostname.h b/src/nm-policy-hostname.h
index c59ca410..9c768847 100644
--- a/src/nm-policy-hostname.h
+++ b/src/nm-policy-hostname.h
@@ -24,7 +24,10 @@
 
 #include <glib.h>
 
-gboolean nm_policy_set_system_hostname (const char *new_hostname, const char *msg);
+gboolean nm_policy_set_system_hostname (const char *new_hostname,
+                                        const char *ip4_addr,
+                                        const char *ip6_addr,
+                                        const char *msg);
 
 
 typedef struct HostnameThread HostnameThread;
@@ -34,9 +37,13 @@ typedef void (*HostnameThreadCallback) (HostnameThread *ht,
                                         const char *hostname,
                                         gpointer user_data);
 
-HostnameThread * hostname_thread_new (guint32 ip4_addr,
-                                      HostnameThreadCallback callback,
-                                      gpointer user_data);
+HostnameThread * hostname4_thread_new (guint32 ip4_addr,
+                                       HostnameThreadCallback callback,
+                                       gpointer user_data);
+
+HostnameThread * hostname6_thread_new (const struct in6_addr *ip6_addr,
+                                       HostnameThreadCallback callback,
+                                       gpointer user_data);
 
 void             hostname_thread_free (HostnameThread *ht);