openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glib-2.0/1_2.60.3-r0/glib-2.60.3/gio/gfile.c
gboolean g_file_measure_disk_usage(
    GFile* file, GFileMeasureFlags flags, GCancellable* cancellable,
    GFileMeasureProgressCallback progress_callback, gpointer progress_data,
    guint64* disk_usage, guint64* num_dirs, guint64* num_files, GError** error)
{
    g_return_val_if_fail(G_IS_FILE(file), FALSE);
    g_return_val_if_fail(cancellable == NULL || G_IS_CANCELLABLE(cancellable),
                         FALSE);
    g_return_val_if_fail(error == NULL || *error == NULL, FALSE);

    return G_FILE_GET_IFACE(file)->measure_disk_usage(
        file, flags, cancellable, progress_callback, progress_data, disk_usage,
        num_dirs, num_files, error);
}
/**
 * g_file_measure_disk_usage:
 * @file: a #GFile
 * @flags: #GFileMeasureFlags
 * @cancellable: (nullable): optional #GCancellable
 * @progress_callback: (nullable): a #GFileMeasureProgressCallback
 * @progress_data: user_data for @progress_callback
 * @disk_usage: (out) (optional): the number of bytes of disk space used
 * @num_dirs: (out) (optional): the number of directories encountered
 * @num_files: (out) (optional): the number of non-directories encountered
 * @error: (nullable): %NULL, or a pointer to a %NULL #GError pointer
 *
 * Recursively measures the disk usage of @file.
 *
 * This is essentially an analog of the 'du' command, but it also
 * reports the number of directories and non-directory files encountered
 * (including things like symbolic links).
 *
 * By default, errors are only reported against the toplevel file
 * itself.  Errors found while recursing are silently ignored, unless
 * %G_FILE_DISK_USAGE_REPORT_ALL_ERRORS is given in @flags.
 *
 * The returned size, @disk_usage, is in bytes and should be formatted
 * with g_format_size() in order to get something reasonable for showing
 * in a user interface.
 *
 * @progress_callback and @progress_data can be given to request
 * periodic progress updates while scanning.  See the documentation for
 * #GFileMeasureProgressCallback for information about when and how the
 * callback will be invoked.
 *
 * Returns: %TRUE if successful, with the out parameters set.
 *          %FALSE otherwise, with @error set.
 *
 * Since: 2.38
 **/


Recursively measures the disk usage of @file.

This is essentially an analog of the 'du' command, but it also
reports the number of directories and non-directory files encountered
(including things like symbolic links).

By default, errors are only reported against the toplevel file
itself.  Errors found while recursing are silently ignored, unless
%G_FILE_DISK_USAGE_REPORT_ALL_ERRORS is given in @flags.

The returned size, @disk_usage, is in bytes and should be formatted
with g_format_size() in order to get something reasonable for showing
in a user interface.

@progress_callback and @progress_data can be given to request
periodic progress updates while scanning.  See the documentation for
#GFileMeasureProgressCallback for information about when and how the
callback will be invoked.

%TRUE if successful, with the out parameters set.
%FALSE otherwise, with @error set.


Recursively measures the disk usage of @file . This is essentially an analog of the ' du ' command but it also reports the number of directories and non - directory files encountered ( including things like symbolic links ) . By default errors are only reported against the toplevel file itself . Errors found while recursing are silently ignored unless %G_FILE_DISK_USAGE_REPORT_ALL_ERRORS is given in @flags . The returned size @disk_usage is in bytes and should be formatted with g_format_size () in order to get something reasonable for showing in a user interface . @progress_callback and @progress_data can be given to request periodic progress updates while scanning . See the documentation for #GFileMeasureProgressCallback for information about when and how the callback will be invoked . %TRUE if successful with the out parameters set . %FALSE otherwise with @error set .
gboolean g_file_measure_disk_usage(
    GFile* file, GFileMeasureFlags flags, GCancellable* cancellable,
    GFileMeasureProgressCallback progress_callback, gpointer progress_data,
    guint64* disk_usage, guint64* num_dirs, guint64* num_files, GError** error)
{
    g_return_val_if_fail(G_IS_FILE(file), FALSE);
    g_return_val_if_fail(cancellable == NULL || G_IS_CANCELLABLE(cancellable),
                         FALSE);
    g_return_val_if_fail(error == NULL || *error == NULL, FALSE);
    return G_FILE_GET_IFACE(file)->measure_disk_usage(
        file, flags, cancellable, progress_callback, progress_data, disk_usage,
        num_dirs, num_files, error);
}
gboolean g_file_measure_disk_usage ( GFile * file , GFileMeasureFlags flags , GCancellable * cancellable , GFileMeasureProgressCallback progress_callback , gpointer progress_data , guint64 * disk_usage , guint64 * num_dirs , guint64 * num_files , GError * * error ) { g_return_val_if_fail ( G_IS_FILE ( file ) , FALSE ) ; g_return_val_if_fail ( cancellable == NULL || G_IS_CANCELLABLE ( cancellable ) , FALSE ) ; g_return_val_if_fail ( error == NULL || * error == NULL , FALSE ) ; return G_FILE_GET_IFACE ( file ) -> measure_disk_usage ( file , flags , cancellable , progress_callback , progress_data , disk_usage , num_dirs , num_files , error ) ; }
g_file_measure_disk_usage:
 @file: a #GFile
 @flags: #GFileMeasureFlags
 @cancellable: (nullable): optional #GCancellable
 @progress_callback: (nullable): a #GFileMeasureProgressCallback
 @progress_data: user_data for @progress_callback
 @disk_usage: (out) (optional): the number of bytes of disk space used
 @num_dirs: (out) (optional): the number of directories encountered
 @num_files: (out) (optional): the number of non-directories encountered
 @error: (nullable): %NULL, or a pointer to a %NULL #GError pointer
g_file_measure_disk_usage : @file : a #GFile @flags : #GFileMeasureFlags @cancellable : ( nullable ) : optional #GCancellable @progress_callback : ( nullable ) : a #GFileMeasureProgressCallback @progress_data : user_data for @progress_callback @disk_usage : ( out ) ( optional ) : the number of bytes of disk space used @num_dirs : ( out ) ( optional ) : the number of directories encountered @num_files : ( out ) ( optional ) : the number of non - directories encountered @error : ( nullable ) : %NULL or a pointer to a %NULL #GError pointer