diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2019-10-07 11:17:06 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2019-10-07 11:17:06 +0200 |
commit | b5521245a0e7a01a6ee70c5789f093fdb1a3ecef (patch) | |
tree | d29033e1f305c2fb6da39cc0f2eefa9cd6cab62b /glib/src/miscutils.hg | |
parent | de6b217f5f4869c6659654a6f3a4f39835405de9 (diff) | |
download | glibmm-b5521245a0e7a01a6ee70c5789f093fdb1a3ecef.tar.gz |
Glib::get_host_name(): Return a Glib::ustring
g_get_host_name() returns a UTF-8 string.
Diffstat (limited to 'glib/src/miscutils.hg')
-rw-r--r-- | glib/src/miscutils.hg | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/glib/src/miscutils.hg b/glib/src/miscutils.hg index e223264c..7e239d83 100644 --- a/glib/src/miscutils.hg +++ b/glib/src/miscutils.hg @@ -171,16 +171,14 @@ std::string get_real_name(); * is. Callers should not rely on the return value having any specific * properties like uniqueness for security purposes. Even if the name * of the machine is changed while an application is running, the - * return value from this function does not change. The returned - * string is owned by GLib and should not be modified or freed. If no - * name can be determined, a default fixed string "localhost" is - * returned. + * return value from this function does not change. If no name can be + * determined, a default fixed string "localhost" is returned. * * @return The host name of the machine. * * @newin{2,64} */ -std::string get_host_name(); +Glib::ustring get_host_name(); /** Gets the current user's home directory. * @return The current user's home directory or an empty string if not defined. @@ -266,7 +264,8 @@ std::string get_user_cache_dir(); /** Returns a directory that is unique to the current user on the local system. * * This is the directory specified in the XDG_RUNTIME_DIR environment variable. - * In the case that this variable is not set, we return the value of g_get_user_cache_dir(), after verifying that it exists. + * In the case that this variable is not set, we return the value of + * Glib::get_user_cache_dir(), after verifying that it exists. * * @newin{2,64} */ |