diff libpurple/util.h @ 23583:399975ad001c

Add purple_get_host_name to get the hostname of the machine. This is a replacement for g_get_host_name in glib2.8+. Thanks to Phil Hannent and Marcus Lundblad for the initial patch. References #5627.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 13 Jul 2008 18:01:57 +0000
parents e0bcb8cfda74
children de8f2d3e538a 57727a140609
line wrap: on
line diff
--- a/libpurple/util.h	Sun Jul 13 17:20:41 2008 +0000
+++ b/libpurple/util.h	Sun Jul 13 18:01:57 2008 +0000
@@ -1271,6 +1271,14 @@
  */
 void purple_restore_default_signal_handlers(void);
 
+/**
+ * Gets the host name of the machine. If it not possible to determine the
+ * host name, "localhost" is returned
+ *
+ * @constreturn The hostname
+ */
+const gchar *purple_get_host_name(void);
+
 #ifdef __cplusplus
 }
 #endif