2 * Copyright (C) 2010-2011 Robert Ancell.
3 * Author: Robert Ancell <robert.ancell@canonical.com>
5 * This library is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License as published by the Free
7 * Software Foundation; either version 2 or version 3 of the License.
8 * See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
11 #include <sys/utsname.h>
13 #include "lightdm/system.h"
15 static gchar *hostname = NULL;
18 * lightdm_get_hostname:
20 * Return value: The name of the host we are running on.
23 lightdm_get_hostname (void)
29 hostname = g_strdup (info.nodename);