Back to index

lightdm  1.3.2
Functions
system.h File Reference
#include <glib-object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

G_BEGIN_DECLS const gchar * lightdm_get_hostname (void)
 lightdm_get_hostname:

Function Documentation

G_BEGIN_DECLS const gchar* lightdm_get_hostname ( void  )

lightdm_get_hostname:

Return value: The name of the host we are running on.

Definition at line 24 of file system.c.

{
    if (!hostname)
    {
        struct utsname info;
        uname (&info);
        hostname = g_strdup (info.nodename);
    }

    return hostname;
}