mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01:00
Merge branch 'file-utils-minor-fixes' into 'main'
gfileutils: Fix transfer annotation and whitespace issues See merge request GNOME/glib!2385
This commit is contained in:
commit
4d2a76af69
@ -1855,7 +1855,7 @@ g_file_open_tmp (const gchar *tmpl,
|
||||
* Note that in contrast to g_mkdtemp() (and mkdtemp()) @tmpl is not
|
||||
* modified, and might thus be a read-only literal string.
|
||||
*
|
||||
* Returns: (type filename): The actual name used. This string
|
||||
* Returns: (type filename) (transfer full): The actual name used. This string
|
||||
* should be freed with g_free() when not needed any longer and is
|
||||
* is in the GLib file name encoding. In case of errors, %NULL is
|
||||
* returned and @error will be set.
|
||||
@ -1989,8 +1989,8 @@ g_build_path_va (const gchar *separator,
|
||||
* as a string array, instead of varargs. This function is mainly
|
||||
* meant for language bindings.
|
||||
*
|
||||
* Returns: (type filename): a newly-allocated string that must be freed
|
||||
* with g_free().
|
||||
* Returns: (type filename) (transfer full): a newly-allocated string that
|
||||
* must be freed with g_free().
|
||||
*
|
||||
* Since: 2.8
|
||||
*/
|
||||
@ -2038,8 +2038,8 @@ g_build_pathv (const gchar *separator,
|
||||
* copies of the separator, elements consisting only of copies
|
||||
* of the separator are ignored.
|
||||
*
|
||||
* Returns: (type filename): a newly-allocated string that must be freed with
|
||||
* g_free().
|
||||
* Returns: (type filename) (transfer full): a newly-allocated string that
|
||||
* must be freed with g_free().
|
||||
**/
|
||||
gchar *
|
||||
g_build_path (const gchar *separator,
|
||||
@ -2198,8 +2198,8 @@ g_build_filename_va (const gchar *first_argument,
|
||||
* Behaves exactly like g_build_filename(), but takes the path elements
|
||||
* as a va_list. This function is mainly meant for language bindings.
|
||||
*
|
||||
* Returns: (type filename): a newly-allocated string that must be freed
|
||||
* with g_free().
|
||||
* Returns: (type filename) (transfer full): a newly-allocated string that
|
||||
* must be freed with g_free().
|
||||
*
|
||||
* Since: 2.56
|
||||
*/
|
||||
@ -2221,8 +2221,8 @@ g_build_filename_valist (const gchar *first_element,
|
||||
* as a string array, instead of varargs. This function is mainly
|
||||
* meant for language bindings.
|
||||
*
|
||||
* Returns: (type filename): a newly-allocated string that must be freed
|
||||
* with g_free().
|
||||
* Returns: (type filename) (transfer full): a newly-allocated string that
|
||||
* must be freed with g_free().
|
||||
*
|
||||
* Since: 2.8
|
||||
*/
|
||||
@ -2253,8 +2253,8 @@ g_build_filenamev (gchar **args)
|
||||
* path. If the first element is a relative path, the result will
|
||||
* be a relative path.
|
||||
*
|
||||
* Returns: (type filename): a newly-allocated string that must be freed with
|
||||
* g_free().
|
||||
* Returns: (type filename) (transfer full): a newly-allocated string that
|
||||
* must be freed with g_free().
|
||||
**/
|
||||
gchar *
|
||||
g_build_filename (const gchar *first_element,
|
||||
@ -2279,8 +2279,8 @@ g_build_filename (const gchar *first_element,
|
||||
* readlink() function. The returned string is in the encoding used
|
||||
* for filenames. Use g_filename_to_utf8() to convert it to UTF-8.
|
||||
*
|
||||
* Returns: (type filename): A newly-allocated string with the contents of
|
||||
* the symbolic link, or %NULL if an error occurred.
|
||||
* Returns: (type filename) (transfer full): A newly-allocated string with
|
||||
* the contents of the symbolic link, or %NULL if an error occurred.
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
@ -2534,8 +2534,8 @@ g_basename (const gchar *file_name)
|
||||
* separators (and on Windows, possibly a drive letter), a single
|
||||
* separator is returned. If @file_name is empty, it gets ".".
|
||||
*
|
||||
* Returns: (type filename): a newly allocated string containing the last
|
||||
* component of the filename
|
||||
* Returns: (type filename) (transfer full): a newly allocated string
|
||||
* containing the last component of the filename
|
||||
*/
|
||||
gchar *
|
||||
g_path_get_basename (const gchar *file_name)
|
||||
@ -2595,7 +2595,7 @@ g_path_get_basename (const gchar *file_name)
|
||||
* If the file name has no directory components "." is returned.
|
||||
* The returned string should be freed when no longer needed.
|
||||
*
|
||||
* Returns: (type filename): the directory components of the file
|
||||
* Returns: (type filename) (transfer full): the directory components of the file
|
||||
*
|
||||
* Deprecated: use g_path_get_dirname() instead
|
||||
*/
|
||||
@ -2611,7 +2611,7 @@ g_path_get_basename (const gchar *file_name)
|
||||
* If the file name has no directory components "." is returned.
|
||||
* The returned string should be freed when no longer needed.
|
||||
*
|
||||
* Returns: (type filename): the directory components of the file
|
||||
* Returns: (type filename) (transfer full): the directory components of the file
|
||||
*/
|
||||
gchar *
|
||||
g_path_get_dirname (const gchar *file_name)
|
||||
@ -2870,7 +2870,7 @@ g_canonicalize_filename (const gchar *filename,
|
||||
* the current directory. This can make a difference in the case that
|
||||
* the current directory is the target of a symbolic link.
|
||||
*
|
||||
* Returns: (type filename): the current directory
|
||||
* Returns: (type filename) (transfer full): the current directory
|
||||
*/
|
||||
gchar *
|
||||
g_get_current_dir (void)
|
||||
|
Loading…
Reference in New Issue
Block a user