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 3 of the License, or (at your option) any
8
* later version. See http://www.gnu.org/copyleft/lgpl.html the full text of the
12
#include <sys/utsname.h>
14
#include "lightdm/system.h"
16
static gchar *hostname = NULL;
19
* lightdm_get_hostname:
21
* Return value: The name of the host we are running on.
24
lightdm_get_hostname (void)
30
hostname = g_strdup (info.nodename);