New function. Returns the machine's name, or one of its names. Document
authorTor Lillqvist <tml@novell.com>
Wed, 22 Jun 2005 08:54:28 +0000 (08:54 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 22 Jun 2005 08:54:28 +0000 (08:54 +0000)
commit477989f555f13cd067c043f61c6941c5dc6409ad
tree4d3fd737b86c1e7ffc6b859fd0e4ec8bae5d76f0
parentda4aefe4a11a37f507fb00e647cc232332939d5e
New function. Returns the machine's name, or one of its names. Document

2005-06-22  Tor Lillqvist  <tml@novell.com>

* glib/gutils.c (g_get_host_name): New function. Returns the
machine's name, or one of its names. Document that it is
best-effort only, and not guaranteed to be unique or anything.
(g_get_any_init): Get the host name here. On Unix use
gethostname(), on Windows use GetComputerName(). (#5200)

* glib/gutils.h
* glib/glib.symbols: Add here, too.

* tests/testglib.c: Test it.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/glib.symbols
glib/gutils.c
glib/gutils.h
tests/testglib.c