mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
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.
This commit is contained in:
committed by
Tor Lillqvist
parent
da4aefe4a1
commit
477989f555
@@ -1,3 +1,16 @@
|
||||
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.
|
||||
|
||||
2005-06-18 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/goption.h:
|
||||
|
Reference in New Issue
Block a user