gfileutils: Mention g_dir_make_tmp() in g_mkdtemp*() docs

https://bugzilla.gnome.org/show_bug.cgi?id=777493
This commit is contained in:
Bastien Nocera 2017-01-23 05:49:15 +01:00
parent 4fbcd18bdf
commit 810a6eb1d6

View File

@ -1365,6 +1365,10 @@ wrap_g_open (const gchar *filename,
* in the GLib file name encoding. Most importantly, on Windows it * in the GLib file name encoding. Most importantly, on Windows it
* should be in UTF-8. * should be in UTF-8.
* *
* If you are going to be creating a temporary directory inside the
* directory returned by g_get_tmp_dir(), you might want to use
* g_dir_make_tmp() instead.
*
* Returns: (nullable) (type filename): A pointer to @tmpl, which has been * Returns: (nullable) (type filename): A pointer to @tmpl, which has been
* modified to hold the directory name. In case of errors, %NULL is * modified to hold the directory name. In case of errors, %NULL is
* returned, and %errno will be set. * returned, and %errno will be set.
@ -1397,6 +1401,10 @@ g_mkdtemp_full (gchar *tmpl,
* The string should be in the GLib file name encoding. Most importantly, * The string should be in the GLib file name encoding. Most importantly,
* on Windows it should be in UTF-8. * on Windows it should be in UTF-8.
* *
* If you are going to be creating a temporary directory inside the
* directory returned by g_get_tmp_dir(), you might want to use
* g_dir_make_tmp() instead.
*
* Returns: (nullable) (type filename): A pointer to @tmpl, which has been * Returns: (nullable) (type filename): A pointer to @tmpl, which has been
* modified to hold the directory name. In case of errors, %NULL is * modified to hold the directory name. In case of errors, %NULL is
* returned and %errno will be set. * returned and %errno will be set.